Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creating a Sequence in Oracle

Status
Not open for further replies.

joeythelips

IS-IT--Management
Aug 1, 2001
305
IE
I am try to creata a sequence starting with a value from another table
CREATE SEQUENCE CALL_PRODUCT_SEQ
START WITH (SELECT CURR_VALUE FROM snap_counter where name ='AIB_CALL_PRODUCT_SEQ') INCREMENT BY 1

however it won't allow it, I have also tried to create the sequence starting with 1 and then try and increment using

alter sequence CALL_PRODUCT_SEQ increment by
(SELECT CURR_VALUE FROM snap_counter where name ='AIB_CALL_PRODUCT_SEQ')
this does'nt work either, has anyone any suggestions?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top