mysql如何实现批量删除

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

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教程(视

频)

Published by

风君子

独自遨游何稽首 揭天掀地慰生平

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注