我正在尝试根据其他列的值替换列值,但我不断收到语法错误。我究竟做错了什么?这就是我累了:
SELECT * FROM `table` WHERE `id_1` =164 and `id_2` = 6
SET `id_1` = (188|164)
WHERE `id_1` = 164 AND `id_2` = 6
UPDATE `table`
这给了我一个接近 SET 的语法。
SELECT * FROM `table` WHERE `id_1` = 164 AND `id_2` = 6
UPDATE `table`
SET `id_1` = 188
WHERE `id_2` = 6
这给了我更新以下所有内容的错误。