MySQL建表 TIMESTAMP 类型字段问题
2019-04-08 22:30 brookin 阅读(1802) 评论(0) 编辑 收藏 举报Incorrect table definition; there can be only one TIMESTAMP column with CURRENT_TIMESTAMP in DEFAULT or ON UPDATE clause
原因:
mysql 5.6 之前的版本不允许单表出现 2 个 Timestamp 默认值 为 CURRENT_TIMESTAMP 的字段
解决:
mysql5.6 之前的版本是不可以这样设置,升级到 5.6 以上即可。
作者:brookin
出处:http://www.cnblogs.com/brookin/
本文采用知识共享署名-非商业性使用-相同方式共享 2.5 中国大陆许可协议进行许可,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接。
出处:http://www.cnblogs.com/brookin/
本文采用知识共享署名-非商业性使用-相同方式共享 2.5 中国大陆许可协议进行许可,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接。