rafael.soteldo Starting Member
23 Posts
khtan In (Som, Ni, Yak)
Singapore 16769 Posts
ALTER TABLE <table name> ADD CONSTRAINT <constraint name> DEFAULT getdate() FOR <column name>
quote:And how do I set it when designing the table?, I wrote getdate() in "Default value or binding" and I got an error message.
CREATE TABLE <table name> ( <column name> datetime DEFAULT getdate() )
quote:By the way, how do I set your answer as the correct answer as in other forums?
DonAtWork Flowing Fount of Yak Knowledge
2113 Posts