pickle
11-18-2002, 05:40 AM
How do you insert a null value into a date field? I've tried to use 'null' and ' ' but there's an error. How do you do it?
Thanks in advance.
Thanks in advance.
|
Click to See Complete Forum and Search --> : Insert null value to a date field pickle 11-18-2002, 05:40 AM How do you insert a null value into a date field? I've tried to use 'null' and ' ' but there's an error. How do you do it? Thanks in advance. ales 11-18-2002, 05:53 AM Just use null, nothing more, nothing less: scott@oracle> create table d (dd date); Table created. scott@oracle> insert into d values(null); 1 row created. pickle 11-18-2002, 06:09 AM Thanks for the answer :D bensr 11-19-2002, 01:33 AM In case of nulls it is a good practice to use explicit conversion: insert into d values(to_date(null)); dbasupport.com
Copyright Internet.com Inc. All Rights Reserved. |