Posted: 3/17/2009 12:19:32 PM EDT
|
My wife is taking a SQL class and she's having a problem with one of her projects, I know absolutely nothing about SQL as i'm more of a hardware/software/network person so I figured i'd ask here. The question states :
Using the alter table command, add the current system date and time as the default value to the order date column of the orders table. The professor has instructed her to use this: ALTER TABLE Orders DATE DEFAULT SYSDATE She's getting a syntax error on default and sysdate. She tried this and got it to change the column properties to date but not sysdate ALTER TABLE Orders ALTER COLUMN OrderDate DATE GO Anyone have any ideas? |
This is for SQL2005.
|