📜  从同一张表上的选择中更新 mysql - SQL 代码示例

📅  最后修改于: 2022-03-11 15:05:07.680000             🧑  作者: Mango

代码示例1
UPDATE users SET status = 1
WHERE id = (
  SELECT id FROM (
    SELECT id FROM users WHERE id = 10
  ) u
)