限时免费试用:欢迎注册 api.bigmodel.org ,快速体验大模型 API 接入服务。
当前位置:首页 >疑难片段

mysql单表多timestamp报错#1293

分类:疑难片段时间:2018-01-18浏览:3638

#1293 - Incorrect table definition; there can be only one TIMESTAMP column with C

原因

在navicat中,'刷新当前时间戳'选项只能设置一个,或者不设置,不能同时设置2个及以上 原因是当你给一个timestamp设置为on updatecurrent_timestamp的时候,其他的timestamp字段需要显式设定default值 但是如果你有两个timestamp字段,但是只把第一个设定为current_timestamp而第二个没有设定默认值,mysql也能成功建表,但是反过来就不行... 相关链接:mysql数据表同时使用创建时间/更新时间字段
本站文章如未注明出处均为原创,转载请注明出处,如有侵权请邮件联系站长。
0/500
Share your thoughts respectfully.