我想使用mysql删除我拥有的字符串列表的行。
示例:
---------------------
| accounts |
|-------------------|
|string | name | id |
|-------|------|----|
| strn1 | bla | 3 |
|-------|------|----|
| strn2 | other| 5 |
|-------|------|----|
然后我有strn1和strn2
delete from `accounts` where `string`= ("strn1","strn2");
(它不起作用)
答案 0 :(得分:1)
delete from `accounts` where `string` in ('strn1','strn2');
答案 1 :(得分:0)