Hello all, I'm new to this list and MySQL, so I hope this question isn't too rudimentary.
In SQL Server I was able to create a datetime field that used the default getdate() function so that I woudl get timestamps on all created rows automatically, like: create table mytable ( createddate datetime not null default getdate() ) I'm having trouble doing this in MySQL, but it keeps complaining. All I have to work on is: create table mytable ( createddate datetime not null default now() ) But it doesn't like now(). I can't find anything else to try in the MySQL docs. Any ideas? --- Shawn Poulson [EMAIL PROTECTED] _________________________________________________________________ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx --------------------------------------------------------------------- Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail <[EMAIL PROTECTED]> To unsubscribe, e-mail <[EMAIL PROTECTED]> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php