Harpreet, Thursday, April 25, 2002, 4:04:27 AM, you wrote: HK> How can i set the default values of a datetime field in a mysql table as the HK> current date.
HK> I am trying HK> alter table copy_tbl add create_date datetime default now() but it does not HK> work. It should not work ... Take a look at the TIMESTAMP column: http://www.mysql.com/doc/D/A/DATETIME.html HK> Please help. HK> Regards, HK> Harpreet Kaur -- For technical support contracts, goto https://order.mysql.com/ 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