Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Null Values in Date Field

Author  Topic 

sonu_k
Starting Member

1 Post

Posted - 2009-01-14 : 05:40:29
Hi

I have a data field and I want to put NULL value during mass insertion, also this date field is null able field.

Please help me.

Regards
Sonu

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2009-01-14 : 05:46:56
INSERT Table1
(Col1, Col2, Col3) -- Col3 is DATETIME column NULLable
SELECT ColA, ColB, NULL
FROM Table2


E 12°55'05.63"
N 56°04'39.26"
Go to Top of Page
   

- Advertisement -