Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: Autonumber facility? Beginner question...

Re: Autonumber facility? Beginner question...

From: Fritz <fritz_nospam_at_mail4u.nl>
Date: Wed, 2 Feb 2000 16:57:14 +0100
Message-ID: <879hs9$hof$1@news1.xs4all.nl>


You can try to solve it using a sequence and a 'before-insert-row' trigger.

h.t.h.

Robert Blomstrand wrote in message <389847b6$0$35287_at_helios.is.co.za>...
>Please help someone with very little Oracle experience...
>
>I need to know if there is a facility similar to the Access "Autonumber"
>facility (please don't laugh at the reference to Access. I know you cannot
>compare it to Oracle).
>
>In Access you can allocate an Autonumber field in a table which will act as
>your primary key, and an incremented number will automatically be allocated
>to this field with each new row added to the table.
>
>If no such facility is available in Oracle, could someone please tell me
how
>to do this via a trigger.
>
>This greenhorn would appreciate any advice he can get :^)
>
>Please copy any response to rbl_at_qmedia.co.za as well as the newsgroup.
>
>Many thanks.
>
>
>
Received on Wed Feb 02 2000 - 09:57:14 CST

Original text of this message

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