update select语句为什么要加where exists()?以及用with语句进行update

58 阅读1分钟

eg:

--以pg库为例,oracle也一样,只是数据类型稍有不同
create table test(id numeric,name character(100));
create table test1(id numeric,name character(100))