Subject | better way of update ? |
---|---|
Author | Safak Ebesek |
Post date | 2003-10-22T13:39:39Z |
Hi,
Dou You know better way or short syntax for query below:
(Without EXISTS, the query will set the region number to NULL)
update customer as c
set region =
(select newregion
from fixes
where oldregion = c.region)
where exists
(select *
from fixes
where oldregion = c.region)
Thanks,
Safak
Dou You know better way or short syntax for query below:
(Without EXISTS, the query will set the region number to NULL)
update customer as c
set region =
(select newregion
from fixes
where oldregion = c.region)
where exists
(select *
from fixes
where oldregion = c.region)
Thanks,
Safak