赞
踩
报错: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 'CURRENT_DATE' at line 2
报错sql文件:
ALTER TABLE cardata.carinfo
ADD COLUMN createTime DATE NOT NULL DEFAULT CURRENT_DATE;
改为以下就ok:
ALTER TABLE cardata.carinfo
ADD COLUMN createTime DATE NOT NULL DEFAULT '2024-06-25';
原因:不太懂
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。