1、不删除字段,只更新其中的内容
在数据库中其实叫做更新(update)
语句如下:
update 表 set 字段=null
2、删除字段
语句如下:
alter table 表 drop column 字段
例如将
变为
则使用语句 update 表名 set scores=0
1、不删除字段,只更新其中的内容
在数据库中其实叫做更新(update)
语句如下:
update 表 set 字段=null
2、删除字段
语句如下:
alter table 表 drop column 字段
例如将
变为
则使用语句 update 表名 set scores=0
373
1万+

被折叠的 条评论
为什么被折叠?