Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Insert/update with one command

Re: Insert/update with one command

From: Dave <x_at_x.com>
Date: Tue, 30 Nov 2004 18:33:46 GMT
Message-ID: <e23rd.26720$up1.23011@text.news.blueyonder.co.uk>

"Anton Dischner" <nomail_at_nospam.org> wrote in message news:301120041456237057%nomail_at_nospam.org...
> Hi,
>
> i believe with some release of Oracle there was intruduced a command
> which combines insert/update of data into a table.
>
> What we do is:
>
> insert into ...
> if data exists -> failure -> use update command.
>
> what we are looking for is
> insert/update table ...
> if unique key -> update
> else insert
>
> Any ideas?
>
> Toni

its called merge - its in 9i Received on Tue Nov 30 2004 - 12:33:46 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US