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

Home -> Community -> Usenet -> c.d.o.server -> Re: using sequences in triggers to generate identities

Re: using sequences in triggers to generate identities

From: Valentin Minzatu <valentinminzatu_at_yahoo.com>
Date: 23 Apr 2007 11:12:55 -0700
Message-ID: <1177351975.348979.39530@b75g2000hsg.googlegroups.com>


On Apr 23, 12:47 pm, if <filip1..._at_gmail.com> wrote:
> Hi,
>
> ';m coming from a db2 background.
> I was wondering if in Oracle there is any performance (or other)
> difference between using a sequence in insert statements and using an
> insert trigger to do the same job.

The difference is that by implementing it in a trigger you add a bit of overhead (the one required to make a PL/SQL call for trigger execution).

Valentin Received on Mon Apr 23 2007 - 13:12:55 CDT

Original text of this message

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