MySQL
文章平均质量分 62
走向自由
追随自己内心的声音,走向自由。
展开
-
mysql之ALTER COLUMN、CHANGE COLUMN、MODIFY COLUMN的区别
mysql之ALTER COLUMN、CHANGE COLUMN、MODIFY COLUMN的区别ALTER COLUMN:设置或删除列的默认值,不会引起表的重构。例子:alter table film alter column rental_duration set default 5; alter table film alter column rental_duration drop default;MODIFY COLUMN:用来修改列的类型和默认值等,会引起表的转载 2022-01-21 13:36:40 · 4328 阅读 · 0 评论 -
Mysql default CURRENT_TIMESTAMP & on update CURRENT_TIMESTAMP区别
public @interface Column { /** * (Optional) The name of the column. Defaults to * the property or field name. */ String name() default ""; /** * (Optional) Whether the column is a unique key. This is a * shortcut..原创 2022-01-21 11:20:34 · 5301 阅读 · 0 评论