【亿码酷站-编程开发教程】收集全网优质教程及源码资源!

全网优质软件开发、平面设计等教程及精品源码资源一站可得,www.ymkuzhan.com!

mysql实现批量删除的方法:使用sql实现批量删除数据,代码为【DELETE “栏位名” FROM “表格名” WHERE “栏位名” IN (‘值一’, ‘值二’, …);】。

mysql如何实现批量删除_亿码酷站_亿码酷站插图

mysql实现批量删除的方法:

sql删除一个数据语法:

DELETE "栏位名" 
FROM "表格名" 
WHERE "栏位名" = '值';

示例:

DELETE * from formName where "name" = 'jack';

sql批量删除数据语法:

DELETE "栏位名" 
FROM "表格名" 
WHERE "栏位名" IN ('值一', '值二', ...);

示例:

DELETE * from formName where "name" in ('jack','rose','tom');

mysql如何实现批量删除
—–文章转载自PHP中文网如有侵权请联系admin#tyuanma.cn删除

mysql中的中文显示为问号怎么办

云服务器推荐