0

我应该用什么 sql 语句来做这样的事情?

UPDATE 
`table1`
SET
`media` = 'url'
WHERE
`media` = '3' AND `forum_post_id` = ('109918','109949','109882','109819','109822')

现在我得到的操作数应该包含 1 列错误

4

1 回答 1

2

用于”:

UPDATE `table1`
SET `media` = 'url'
WHERE`media` = '3' AND `forum_post_id` IN ('109918','109949','109882','109819','109822')

“IN”的文档

于 2012-07-14T03:09:56.003 回答