<CFQUERY datasource="mydbsource">
INSERT INTO TABLENAME (Field1, Field2, Field3,....)
VALUES (#CreateODBCDate(Value1)#, 'Value2', 'Value3',...)
</CFQUERY>
Dates are not strings, and use CreateODBCDate().
--- Ben
-----Original Message-----
From: Dusty Tinashe Shoko [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 31, 2001 9:06 AM
To: CF-Talk
Subject: SQL
People help
<CFQUER datasource="mydbsource">
INSERT INTO TABLENAME (Field1, Field2, Field3,....)
VALUES ('Value1', 'Value2', 'Value3',...)
</CFQUERY>
Is that the proper syntax?
Sp Field1 is a date got from the form how would I make sure it is inserted
in a format I like? Can I do a dateformat within the query?
I am getting a syntax error!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists