首页 >
数据库 >
mysql
mysql清除表中所有空行
时间:2017-05-24 17:45:26 点击: 来源: 作者:
有时候表中会出现很多空行我们想删除它或者删除某个字段等于特定值的所有行,可以使用如下命令。
命令如下:
delete from tabl where `codes` = ''; #删除tabl表中codes字段为空的 ...
有时候表中会出现很多空行我们想删除它或者删除某个字段等于特定值的所有行,可以使用如下命令。

命令如下:
delete from tabl where `codes` = ''; #删除tabl表中codes字段为空的所有行
delete from tabl where `codes` = '123'; #删除tabl表中codes字段为123的所有行
”您可通过以下微信二维码,赞赏作者“
