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: Dynamic SQL using INSERT with a predefined query and an id.

Re: Dynamic SQL using INSERT with a predefined query and an id.

From: crappy <crappygolucky_at_hotmail.com>
Date: 27 Jun 2001 12:33:29 -0700
Message-ID: <ce31c410.0106271133.7878ab4f@posting.google.com>

if i understand your problem, i have an awful hack for you.

use the sequence, but subtract rownum from it (and add 1). i.e., your Query in the List table looks like

"select myseq.nextval + 1 - rownum, ..."

like i said, it's a hack, but for each "population" that first column should be the same number. another drawback is, the sequence will still iterate of course, and you will have big gaps in the id's.

otherwise what you're trying to do shouldn't be that hard if you used PL/SQL. Received on Wed Jun 27 2001 - 14:33:29 CDT

Original text of this message

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