Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: sequences
On Sun, 23 Aug 1998 14:20:01 -0400, "bubba"
<brittonb_at_webt.com> wrote:
>However, I have an issue where we are using Access 97 to update some data.
>
>How can I set a trigger so that oracle automatically inserts the next value
>into the primary key?
The following trigger should do it. In this example, fld_pk is the column name that gets the sequence.
regards,
Jonathan Gennick
create or replace trigger my_table_set_key
before insert on my_table referencing new as n for each row
![]() |
![]() |