📜  MySQL 使用子查询更新 - SQL 代码示例

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

代码示例1
update Users set Valid = 0
where Id in (
  select Id from (
    select Id from Users where Id < 100
  ) as t
)