I'm trying to create the following table using phpmyadmin sql console:
CREATE TABLE dates
(
id int NOT NULL,
id_date datetime NOT NULL DEFAULT CURDATE(),
PRIMARY KEY (id)
)
However I get the following error:
It shows "CURDATE()" in red, so I guess that's the problem.
Could anyone help me out here ?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…