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: Require Solution for this SQL problem

Re: Require Solution for this SQL problem

From: <sybrandb_at_hccnet.nl>
Date: Sat, 15 Sep 2007 16:22:40 +0200
Message-ID: <tjqne3hhn58nbk5o4pdf2jpn4k5o4dorgh@4ax.com>


On Sat, 15 Sep 2007 03:47:34 -0700, Nick <nachiket.shirwalkar_at_gmail.com> wrote:

>Hi,
>
>I have two tables TableA and TableB. I have a stored procedure which
>runs every morning and based on some logic dumps rows from TableA to
>TableB. In Table B there are two additional colums ID and RunID. ID is
>a normal sequence applied for all rows. But the RunId should be
>constant for a run of stored proc.

very simple: set up a sequence. Increment it only once in your procedure.
Problem solved.

-- 
Sybrand Bakker
Senior Oracle DBA
Received on Sat Sep 15 2007 - 09:22:40 CDT

Original text of this message

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