Results 1 to 3 of 3

Thread: Autonumber in Oracle

  1. #1

    Thread Starter
    Lively Member Flustor's Avatar
    Join Date
    Sep 2001
    Location
    A small hole in Birmingham
    Posts
    76

    Autonumber in Oracle

    I read on VBforum that auto-numbering could only be done by a trigger in Oracle, but someone else tells me it can be done as a datatype.. anyone have any ideas about this reclusive datatype?

    I was looking at something along the lines of...

    CREATE TABLE Test (
    TestCol Number DEFAULT rownum)


    Thanks very much

    Flus
    My Spidey senses are tingling!

  2. #2
    Frenzied Member Memnoch1207's Avatar
    Join Date
    Feb 2002
    Location
    DUH, Guess...Hint: It's really hot!
    Posts
    1,861
    Here is an example of how to do it by creating a trigger.
    Being educated does not make you intelligent.

    Need a weekend getaway??? Come Visit

  3. #3

    Thread Starter
    Lively Member Flustor's Avatar
    Join Date
    Sep 2001
    Location
    A small hole in Birmingham
    Posts
    76
    Excellent!! Thanks Memnoch1207.. like the 'laughs last' quote in yer signiture btw
    Last edited by Flustor; Feb 4th, 2003 at 10:37 AM.
    My Spidey senses are tingling!

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