Subject | Re: [firebird-support] UPDATE a table, but only rows matching a JOIN clause |
---|---|
Author | Matthias Hanft |
Post date | 2007-11-26T10:48:32Z |
Anderson Farias wrote:
"select 1" - hm, funny thing. Never used that before :-)
-Matt
>Worked perfectly - I'm happy :-) Thank you!
> update lizenzen l
> set l.ablaufjahr = 2008
> where l.ablaufversion=3 and l.bestellung starts with '2'
> and exists (select 1 from bestellungen b
> where b.venr=l.bestellung and b.status_wartung=2)
"select 1" - hm, funny thing. Never used that before :-)
-Matt