when copying a table from database to database with phpMyAdmin, I get an error for Timestamp
row.
This is my SQL statement:
CREATE TABLE `database`.`table` ( `id` int( 10 )
unsigned NOT NULL AUTO_INCREMENT ,
`Timestamp` timestamp( 6 ) NOT NULL DEFAULTCURRENT_TIMESTAMP( 6 )
ON UPDATE CURRENT_TIMESTAMP( 6 ) ,
`row3` tinyint( 1 ) DEFAULT NULL COMMENT 'Comment',
`row4` tinyint( 1 ) DEFAULT NULL COMMENT 'comment',
PRIMARY KEY ( `id` ) ,
KEY `keyname` ( `row4` ) ) ENGINE = MyISAM
DEFAULT CHARSET = latin1 COLLATE = latin1_german2_ci
And this is the error message:
#1064 - You have an error in your SQL syntax; check the manual that corresponds
to your MySQL server version for the right syntax to
use near 'DEFAULTCURRENT_TIMESTAMP( 6 ) ON UPDATE CURRENT_TIMESTAMP( 6 )
at line 2
I think that there is something wrong with DEFAULTCURRENT_TIMESTAMP and Timestamp (6), but I don't know, what.