update a set a.ORGID = (select b.ORG_ID from PT_SERVICE b where a.SERVICEOID = b.SERVICEOID and a.ORGID is null ) from XZXK_SHOULI a where a.ORGID is null
sql server 的update的别名 居然是写在后面的,重要的是 update后面居然可以写from,可以写from,可以写from!!!重要的事说3遍。。。。!!!!!
update a set a.ORGID = (select b.ORG_ID from PT_SERVICE b where a.SERVICEOID = b.SERVICEOID and a.ORGID is null ) from XZXK_SHOULI a where a.ORGID is null
sql server 的update的别名 居然是写在后面的,重要的是 update后面居然可以写from,可以写from,可以写from!!!重要的事说3遍。。。。!!!!!