Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Other Forums
 Other Topics
 ORACLE SQL(CREATE SEQUENCE)

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2001-01-22 : 08:43:02
andreas writes "I tried to write a procedure like this :
DECLARE
PROCEDURE createsequence (Mysession INTEGER) IS

BEGIN
DROP SEQUENCE Myaw_SessionID;
CREATE SEQUENCE Myaw_SessionID
INCREMENT BY 1
START WITH Mysession
NOMAXVALUE
NOCYCLE
CACHE 20;
END createsequence;

But i always got error on lines, with "DROP" or "CREATE"- words.

How can i write this procedure ?"
   

- Advertisement -