如何更改限制为 NOT NULL 的列以接受 NULL 值?
最佳答案
只需修改它并放入旧类型并保留 not null
alter table table_name modify column foo int;
关于mysql - 从 MySQL 中的列中删除 NOT NULL 限制,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5707492/
如何更改限制为 NOT NULL 的列以接受 NULL 值?
最佳答案
只需修改它并放入旧类型并保留 not null
alter table table_name modify column foo int;
关于mysql - 从 MySQL 中的列中删除 NOT NULL 限制,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5707492/
相关文章:
c# - MySQL查询从两个表中检索数据,即使没有找到数据并且两个表中都有唯一列
null - 表达式 "IS NOT NULL"不适用于 HQL
sql-server - SQL Server : How to check if the value of returned field is not null
php - MYSQL - 错误代码 :- 1241 "Operand should contain 1 column(s) "
php - SQL 以不同格式保存时间 (mm :ss, mmm)