Unix Technical Forum

Help for 10g Table Trigger ----first post

This is a discussion on Help for 10g Table Trigger ----first post within the Oracle Miscellaneous forums, part of the Oracle Database category; --> Hi everyone, This is my first post on the newsgroup so please be kind to a newbie. I have ...


Go Back   Unix Technical Forum > Database Server Software > Oracle Database > Oracle Miscellaneous

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-08-2008, 12:42 PM
The Great Pawn Hunter
 
Posts: n/a
Default Help for 10g Table Trigger ----first post

Hi everyone,

This is my first post on the newsgroup so please be kind to a newbie.
I have the following code for an Oracle 10g table trigger

create or replace trigger chk_multi_dup
after insert or update on epics.actor_attribute
for each statement

SQL PLUS complains that it is expecting "for each row"...however, I
truly do want it to be for each statement.


The Great Pawn Hunter

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-08-2008, 12:42 PM
Maxim Demenko
 
Posts: n/a
Default Re: Help for 10g Table Trigger ----first post

The Great Pawn Hunter schrieb:
> Hi everyone,
>
> This is my first post on the newsgroup so please be kind to a newbie.
> I have the following code for an Oracle 10g table trigger
>
> create or replace trigger chk_multi_dup
> after insert or update on epics.actor_attribute
> for each statement
>
> SQL PLUS complains that it is expecting "for each row"...however, I
> truly do want it to be for each statement.
>
>
> The Great Pawn Hunter
>


Row level trigger requires "FOR EACH ROW" clause.
If you omit the above, dml trigger is statement level trigger.

The one of the fastest alternatives (compared to any other) to check,
whether syntax you used is correct is to lookup it in the documentation.
http://download-uk.oracle.com/docs/c...4.htm#i2235611

Best regards

Maxim
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 08:05 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com