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: Default column value of MAX +1 of column - possible in Oracle 9i?

Re: Default column value of MAX +1 of column - possible in Oracle 9i?

From: Sybrand Bakker <postbus_at_sybrandb.demon.nl>
Date: Fri, 25 Mar 2005 12:03:58 +0100
Message-ID: <1sr7411dtfg0vqj5uep2i9rhfabcfskne0@4ax.com>


On Fri, 25 Mar 2005 06:54:57 GMT, Kenneth Koenraadt wrote:

>Hi Arun,
>
>Thanks for the stats. My term "evil" was meant to emphasize the latter
>quote : "Don't use triggers unless you really have to". After all,
>don't use Evilness unless you have to :-)
>
>- Kenneth Koenraadt

So actually you don't have any solid reason to reject them other than superstition. Because in almost all case anyone uses them they *are* needed.

Apart from that the main 'problem' and difference to ordinary PL/SQL is that a trigger is parsed every time it is called. This is easily verified from a TKPROF output. This can be worked around by converting the code in a procedure and calling the procedure from your trigger.

--
Sybrand Bakker, Senior Oracle DBA
Received on Fri Mar 25 2005 - 05:03:58 CST

Original text of this message

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