Money datatype
I'm having a very hard time doing a simple insert and update for columns with NUMBER(38,2) and NUMBER(10,0) datatypes on Oracle.
These columns represent Cash/Donation and they used to be set as MONEY datatype and TINYINT datatype respectively (When it was on non-Oracle DB)
I used ColdFusion cf_sql_numeric, cf_sql_decimal and cf_sql_money but all gave me error such as:
| The following information is meant for the website developer for debugging purposes. | |
| Error Occurred While Processing Request | |
|
OR
| The following information is meant for the website developer for debugging purposes. | |
| Error Occurred While Processing Request | |
|
When I run the following:
<CFSET Cash = "#Replace(Form.Cash, "$", "", "ALL")#">
<CFSET CFM = "#Replace(Form.CFM, "$", "", "ALL")#">
UPDATE Tbl_Gift
SET FiscalYear =
<cfqueryparam cfsqltype="cf_sql_varchar" value="#Form.FYR#">,
<cfqueryparam cfsqltype="cf_sql_numeric" value="#Cash#"> ,
DonationAmount =
<cfqueryparam cfsqltype="cf_sql_numeric" value="#CFM#">
etc.
I ran out of datatype to use. What else can I use for Oracle datatype NUMBER(38,2) and NUMBER(10,0) ? Please help
