我应该使用哪些sql语句来做这样的事情?
UPDATE
`table1`
SET
`media` = 'url'
WHERE
`media` = '3' AND `forum_post_id` = ('109918','109949','109882','109819','109822')
现在我得到的操作数应该包含1列错误
答案 0 :(得分:2)
使用“IN”:
UPDATE `table1`
SET `media` = 'url'
WHERE`media` = '3' AND `forum_post_id` IN ('109918','109949','109882','109819','109822')