Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: PL/SQL HELP NEEDED!!!!
So what you are saying, I could make proc like:
Procedure blabla (xxxx NUMBER) AS
BEGIN
INSERT INTO MyTable (var1, var2) VALUES (seq.NextVal, xxxx); INSERT INTO NewTable (var1, var2) VALUES (seq.CurrVal, xxxx); ... and so on... COMMIT;
BG :O)
Thomas Kyte wrote:
> currval and nextval are SESSION specific. When you get a nextval -- currval
> will also return YOUR currval -- never anyone elses. currval would be utterly
> useless if it returned anything other then your last NEXTVAL...
--
"Your infatuation is based on a physical attraction.
Talk to the woman and you'll realize you have nothing
in common. >>>BURP!!!<<<"