且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

SQL:如何在更新语句中自引用列?

更新时间:2021-12-04 23:11:26

update users a
    set a.location =
     (select b.location 
      from classes b
      where b.class = a.class)