Hello Martin,
You can create a sequence in Oracle and assign it to
the table. You don';t have to create trigger on it.
Hope this helps
Raju.
sorry for my english too :)
- pfeffer <m.pfeffer_at_inode.at> wrote:
> hi
> i run oracle8 on w2000 advanced server.
> my question is how to create a auto increment
> primary key for this table:
> id number(5)
> name varchar(12)
>
> id should auto increment after inserting a new
> datarow
> must i create a trigger ?
>
> excuse my bad english
> thx
> martin
>
> --
> Please see the official ORACLE-L FAQ:
> http://www.orafaq.net
> --
> Author: pfeffer
> INET: m.pfeffer_at_inode.at
>
> Fat City Network Services -- 858-538-5051
> http://www.fatcity.com
> San Diego, California -- Mailing list and web
> hosting services
>
> To REMOVE yourself from this mailing list, send an
> E-Mail message
> to: ListGuru_at_fatcity.com (note EXACT spelling of
> 'ListGuru') and in
> the message BODY, include a line containing: UNSUB
> ORACLE-L
> (or the name of mailing list you want to be removed
> from). You may
> also send the HELP command for other information
> (like subscribing).
>
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
Received on Mon Jul 14 2003 - 17:20:33 CDT