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

Home -> Community -> Usenet -> c.d.o.tools -> Re: Help with INSERT & Subquery

Re: Help with INSERT & Subquery

From: Jonathan Gennick <jonathan_at_gennick.com>
Date: 2000/08/09
Message-ID: <1kf1pssm5albmkoibj1rgk1st8kd1at2da@4ax.com>#1/1

Could you possibly bump up the counter in table 3 prior to inserting the data from table 1?

On Tue, 08 Aug 2000 17:07:55 GMT, pmurnane_at_usa.net wrote:

>For NeedHelpHere, my first thought was to SELECT MAX(column1)+1 FROM
>table2, then UPDATE table3 SET column = (SELECT MAX(column1)+1 FROM
>table2). But since the commit isn't done until after the entire INSERT
>has run, I got unique index violations.
Received on Wed Aug 09 2000 - 00:00:00 CDT

Original text of this message

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