我正在练习数据类型(日期)和MySQL日期函数。因此,为了便于实践,我尝试创建一个表,并将这两个表(前两个表)都用于“x”列。如果可能的话,我也想用其他的日期函数来做。ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL
我希望将addtime(current_timestamp, '15:00:00')设置为一个MySQL表列的默认值。我试图使用以下命令执行此操作,但失败了:
mysql> alter table mytable change c1 c2 timestamp null default addtime(current_timestampERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds