Question
<cfinsert> tablename attribute, how to format for Oracle
I've been using <cfquery> successfully for a long time
to do table inserts, but now I'd like to use <cfinsert> for
the simple inserts. However, I'm getting error messages. A typical
<cfquery> against my Oracle database would look like:
<cfquery name="myQuery" datasource="#application.DataSource#">
INSERT into abc.action_type_def (field1, field2, field3)
VALUES ('value1', value2'', value3'')
</cfquery>
I tried the following <cfinsert> but got the error message that follows the tag:
<cfinsert datasource="#application.DataSource#"
tablename="ABC.ACTION_TYPE_DEF"
formfields="FIELD1, FIELD2, FIELD3">
----------------------
ERROR:
Message: There are no columns found for the given table name "PRFA.ACTION_TYPE_DEF".
Detail: This error may be caused by not specifying the table name in the format that the database server expects. (For example. Oracle Server table name must be upper case or the Server table name must be qualified in the format of "schema.table_name". For the SQL Server, the format is "databasename.username.tablename", such as in customers.dbo.orders)
I've tried upper and lower case on the tablename attribute, tried leaving the "abc." off, but I just can't seem to get it to work. Any idea how to format this tag to go against an Oracle database?
Thanks! Pam
<cfquery name="myQuery" datasource="#application.DataSource#">
INSERT into abc.action_type_def (field1, field2, field3)
VALUES ('value1', value2'', value3'')
</cfquery>
I tried the following <cfinsert> but got the error message that follows the tag:
<cfinsert datasource="#application.DataSource#"
tablename="ABC.ACTION_TYPE_DEF"
formfields="FIELD1, FIELD2, FIELD3">
----------------------
ERROR:
Message: There are no columns found for the given table name "PRFA.ACTION_TYPE_DEF".
Detail: This error may be caused by not specifying the table name in the format that the database server expects. (For example. Oracle Server table name must be upper case or the Server table name must be qualified in the format of "schema.table_name". For the SQL Server, the format is "databasename.username.tablename", such as in customers.dbo.orders)
I've tried upper and lower case on the tablename attribute, tried leaving the "abc." off, but I just can't seem to get it to work. Any idea how to format this tag to go against an Oracle database?
Thanks! Pam