但是mysql是不支持在子查询中引用更新目标表的数据库。那我们要怎么来搞呢
创建零时表的方式:
update emp set ename='赤脚大仙' where
id in (SELECT e.id
from (select id from emp where id >1010) e)

相关文章:

  • 2021-06-01
  • 2021-05-02
  • 2022-12-23
  • 2022-12-23
  • 2021-07-28
  • 2021-08-12
  • 2021-10-27
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-01-06
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案