Click to See Complete Forum and Search --> : Storing null values in date/time field


trisolve
October 23rd, 2004, 02:22 AM
Hi,
I'm trying to update a field of type date/time to null value using sql query.

my sql query:
"Update jobs Set mydate.value = DBNull" ....

This doesn't work!
What do I need in this sql statement so that I can update date/time field with nothing (empty).
Thanks.

hspc
October 23rd, 2004, 04:22 AM
Hi
Please always send Database engine you use and the error message(s) you get.
anyway this should work if the field allows null values:
Update jobs Set mydate = Null

trisolve
October 23rd, 2004, 01:45 PM
Thanks a lot hspc!! :)