Firebird SELECT-Statement作为UPDATE的条件

时间:2016-09-07 07:29:09

标签: sql sql-update firebird firebird2.5

我想更新一些与此语句相关的结果行的属性:

select adr.lkz, adr.adressnr, adr.kundennr, adr.vertreter1 as VERTRETERNR, adr.kurzname, ans.name as ANSPRECHPARTNER, ans.telefon, adr.plz, adr.ort from ans
left join adr rt on ans.id = rt.id
left join adr on adr.adressnr = ans.adressnr
left join vet on adr.vertreter1 = vet.vertreternr
 where adr.plz similar to '26%' or adr.plz similar to '27%' or adr.plz similar to '28%' or adr.plz similar to '29%' or adr.plz similar to '30%' or adr.plz similar to '31%'

如何将该结果集作为UPDATE语句的标准?

0 个答案:

没有答案