Jump to content

Altering tablw column to current timestamp


ballouta

Recommended Posts

Hello

I have an old table (newsletter) whoch contains three columns: email / country / date

the date field was of type Date e.g.: 2008-08-03

I changed it to datetime type and it worked fine, the old fields turned to 2008-08-03 00:00:00

the problem: i am using the phpmyadmin page to change the Default option for this field to currrent_timestamp

i am getting this error: #1067 - Invalid default value for 'date'

 

Please help

Many thanks

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.