MySQL 默认值

1、创建默认值:列名   列数据类型    default   默认值。之后的 insert 如果没有指定该列名的值,则使用默认值。

 

 2、删除默认值条件:alter table  table_name    change  column   column_name    column_name    数据类型     default   null;

 3、修改默认值。

猜你喜欢

转载自www.cnblogs.com/yijierui/p/12922698.html