MySQL Forums
Forum List  »  Newbie

Re: default current timestamp issues
Posted by: Alice
Date: March 29, 2005 08:30AM

I have a very similar question so I'll put it under your heading. Using 4.1.9 with a sole TIMESTAMP column:
dates timestamp YES CURRENT_TIMESTAMP
I can't seem to change the NULL column from YES to blank, I get a mysql syntax error.
Leaving the insert query blank, or putting in 'NULL' 'NOW()' 'CURRENT_DATE' 'UNIX_TIMESTAMP' 'CURRENT_TIMESTAMP' all return: 0000-00-00 00:00:00. That's what I would get with an illegal entry, and I do get a warning, but no error.
Thoughts?
Thank you
Alice

Options: ReplyQuote


Subject
Written By
Posted
Re: default current timestamp issues
March 29, 2005 08:30AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.