mysql插入数据后会产生很多空行,如何去除

mysql插入数据后会产生很多空行,如何去除,第1张

你是要删除还是查询去掉

删除:

delete 表名 where 列2 = '' and 列3 is null and 列4 is null

查询去除:

select * from 表名 where 列2 = '' and 列3 is null and 列4 is null

用delete。类似以下:

delete from 表名 where 字段名1=“” and 字段名2=“”

具体按照字段设置和功能需求。


欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/zaji/7405604.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2023-04-05
下一篇2023-04-05

发表评论

登录后才能评论

评论列表(0条)

    保存