发布网友
共4个回答
热心网友
update table_group set name=NULL where id = 12;
热心网友
如果要将数据库表的一列置空,首先需要该列支持为NULL,因此第一步需要检查该项,如果该项不允许为空,则需要执行如下调整:
alter table tableName modify columnname varchar(2) null;
然后再对该列进行置空操作
update tableName set columnname =null
执行完成后,columnname 该列内容将为空。
热心网友
update table set column=null,假如这个列没有约束,并且 不是not null的话,就可以了
热心网友
update table_group set name="" where id = 12;