为何MySQL中两列时间戳默认值设置,非得用长尾表达?
- 内容介绍
- 文章标签
- 相关推荐
本文共计32个文字,预计阅读时间需要1分钟。
sqlALTER TABLE qssqMODIFY COLUMN createdAt TIMESTAMP NULL DEFAULT CURRENT_TIMESTAMP;
alter table qssq
change createdAt newtime timestamp null default current_timestamp
本文共计32个文字,预计阅读时间需要1分钟。
sqlALTER TABLE qssqMODIFY COLUMN createdAt TIMESTAMP NULL DEFAULT CURRENT_TIMESTAMP;
alter table qssq
change createdAt newtime timestamp null default current_timestamp

