Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can i insert null date values in SQL

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
i need to insert a null value into SQL so that it displays the word <NULL> instead of 01/01/1900

any ideas

Cheers Mark
 
Hi Mark,
You can write like this:
INSERT myTable (col1,...,myDateColumn,...)
VALUES (val1,...,null,...)

OR like this
INSERT myTable
SELECT col1,...,null,... FROM ....

Or any other such combination.

Hope it will move you in right direction.
 
Update <tablename>
Set <columnName>='<NULL>' Where <columnName>='01/01/1900'

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top