Quote:
|
Originally Posted by vivek.vivek
I need to insert a null value for a timestamp column(which is nullable)
|
If the column was declared as nullable but without a default (at CREATE TABLE), just don't insert into that column.
Suppose you have a table with two text columns A and B, and a timestamp column T:
Code:
INSERT INTO mytable(a, b) VALUES ('value for a', 'value for b')
If on the other hand T was declared as "WITH DEFAULT", you'll have to say
Code:
INSERT INTO mytable(a, b, t) VALUES ('value for a', 'value for b', NULL)