Wouter, Friday, June 14, 2002, 4:53:20 PM, you wrote: WvV> I'm having a slight problem with the timestamp column format. When I alter a WvV> table and, add a column of type timestamp all records get the current WvV> timestamp, that's ok. When i insert a new row, all records get the current WvV> timestamp. That too is ok. But now, when I update one row of the table, that WvV> row gets a new timestamp. And that's not what i'd like it to do. Does WvV> somebody have any idea on how this can be prevented?
WvV> I've tried to make the column of type int(14) and then set now() or WvV> UNIX_TIMESTAMP as default value, but that just results in a very well known WvV> error 1064 (You have an error in your SQL syntax near 'NOW()' at line 1). You can add one more TIMESTAMP column or take a look at DATETIME column and use functon NOW(): http://www.mysql.com/doc/D/A/DATETIME.html WvV> Thanks ! WvV> Wouter -- For technical support contracts, goto https://order.mysql.com/?ref=ensita This email is sponsored by Ensita.net http://www.ensita.net/ __ ___ ___ ____ __ / |/ /_ __/ __/ __ \/ / Victoria Reznichenko / /|_/ / // /\ \/ /_/ / /__ [EMAIL PROTECTED] /_/ /_/\_, /___/\___\_\___/ MySQL AB / Ensita.net <___/ www.mysql.com --------------------------------------------------------------------- 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