DBAsupport.com Forums - Powered by vBulletin
Results 1 to 2 of 2

Thread: SQL QUERY

  1. #1
    Join Date
    Jul 2001
    Posts
    1
    HOW TO GENERATE SERIAL NUMBERS USING
    SQL STATEMENT WITHOUT USING PL/SQL.??

  2. #2
    Join Date
    Aug 2000
    Posts
    462
    Create a sequence. A sequence is a database object, like a table. However, the sequence's only job is to produce unique numbers when queried:

    create sequence myseq;

    select myseq.nextval from dual;


    Read up on sequences - this is a VERY limited description.
    Oracle DBA and Developer

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width