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 -> Procedure fo a new sequence value

Procedure fo a new sequence value

From: Jaap Severein <j.severein_at_multiweb.nl>
Date: Wed, 3 Mar 1999 22:16:55 +0100
Message-ID: <7bk8r8$pci$1@news.news-service.com>


Hi,

How to create procedure that returns a new sequence value. As an Oracle newbie I've tried this:

CREATE SEQUENCE VOLGNUMR
  START WITH 1
  INCREMENT BY 1
  NOCYCLE
  CACHE 20
  NOORDER; CREATE procedure NewVolgNumr( NewKey out number ) is begin

   NewKey := volgnumr.nextval;
end;

but that does'nt work. Any Ideas?

Thanks in advance

Jaap. Received on Wed Mar 03 1999 - 15:16:55 CST

Original text of this message

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