Subject | Re: [firebird-support] Re: update from 2 tables |
---|---|
Author | bill_lam |
Post date | 2006-06-23T15:02:56Z |
Svein Erling Tysvaerwrote:
eg.
update a set a.p=b.q, a.r=b.s from a, b where a.x=b.y
regards,
bill
> > update TableA aIs also possible to use this syntax if more than 1 column need changes,
> > set a.p=(select b.q from TableB b where b.y=a.x)
> > where exists(select * from TableB c where c.y=a.x)
eg.
update a set a.p=b.q, a.r=b.s from a, b where a.x=b.y
regards,
bill