Question
Updating DB date field as NULL from Coldfusion code
Hello,
I'm running an insert query and one of the DB fields (DateCreated) is date/time.
I am using the following query to insert values
<CFQUERY Name="Inserttable" DATASOURCE="#Session.DS1#">
INSERT into table1 (Num, NumSeq ,DateCreated)
Values ('#AcctNum#','#AcctNumseq#',#CreateODBCDate(DateCreated))#)
</CFQUERY>
I need to pass NULL value when the Datecreated field is empty ? How can i pass the NULL value ?
Pls advise.
Thanks,
Rams
I'm running an insert query and one of the DB fields (DateCreated) is date/time.
I am using the following query to insert values
<CFQUERY Name="Inserttable" DATASOURCE="#Session.DS1#">
INSERT into table1 (Num, NumSeq ,DateCreated)
Values ('#AcctNum#','#AcctNumseq#',#CreateODBCDate(DateCreated))#)
</CFQUERY>
I need to pass NULL value when the Datecreated field is empty ? How can i pass the NULL value ?
Pls advise.
Thanks,
Rams