Re: common UPDATE syntax for SqlServer and Oracle
From: Hugo Kornelis <hugo_at_pe_NO_rFact.in_SPAM_fo>
Date: Fri, 26 Nov 2004 12:41:16 +0100
Message-ID: <vf5eq0tmle3sshetf70ja33visriesouq2_at_4ax.com>
Date: Fri, 26 Nov 2004 12:41:16 +0100
Message-ID: <vf5eq0tmle3sshetf70ja33visriesouq2_at_4ax.com>
On Fri, 26 Nov 2004 11:01:39 +0100, Jan van Veldhuizen wrote:
>
>That syntax will work with one column to be updated.
>What if I have to columns?
>
>I think the oracle sql will support something like:
>UPDATE Table1
> SET (city_id, another_column) =
> (SELECT T2.id, other_column FROM etctera...
>
>But that no standard SqlServer syntax as far as I know.
-- (Remove _NO_ and _SPAM_ to get my e-mail address)Received on Fri Nov 26 2004 - 12:41:16 CET