How do you know the name of the trigger event

Hi all

I have a question, please tell me how do I know the name of the event trigger to the fact stop relaxing...
as-
CREATE OR REPLACE TRIGGER ******
BEFORE DELETE OR INSERT OR UPDATE
OF TOTAL_QUANTITY,CANCELLED
ON *********
REFERENCING NEW AS NEW OLD AS OLD
FOR EACH ROW
BEGIN
-----------I want to know given trigger event at this level-----------
  IF INSERTING  THEN
    null;
  ELSIF UPDATING  THEN
   null;
  ELSIF DELETING THEN
     null;
  END IF;

END;
Help, please...

You can have a block, right?

What question are you recovering to solve?

create or replace trigger trig1
  before update or delete or insert on test
  for each row
declare
  lc_event varchar2(50);
begin
 if inserting then
  lc_event := 'INSERT';
 elsif updating then
  lc_event := 'UPDATE';
 else
  lc_event := 'DELETE';
 end if;
 if inserting then --"or use your variable.."
   ......  

Tags: Database

Similar Questions

  • How do you know the name of table or index that has the segment?

    Hi all

    I want to move the data to the LOB_TABSPC on LOB_TABSPC1 tablespace. I almost moved my data. But when I checked the LOB_TABSPC tablespace, there is still a segment:

    Line: -.
    Select dba_segments nom_segment, nom_partition, SEGMENT_TYPE, nom_tablespace, HEADER_FILE, HEADER_BLOCK, BYTES, BLOCKS, EXTENTS where OWNER = 'xxx' and nom_tablespace = 'LOB_TABSPC. '

    Rank # nom_segment nom_partition SEGMENT_TYPE nom_tablespace HEADER_FILE, HEADER_BLOCK BYTES BLOCKS SCOPES
    1 SYS_IL0000103064C00019$ $ SYS_IL_P87 INDEX PARTITION 18 59 131072 16 2 LOB_TABSPC
    2 SYS_IL0000103064C00019$ $ SYS_IL_P88 INDEX PARTITION 18 67 65536 8 1 LOB_TABSPC
    3 SYS_IL0000103064C00018$ $ SYS_IL_P83 INDEX PARTITION 18 27 196608 24 3 LOB_TABSPC
    4 SYS_IL0000103064C00018$ $ SYS_IL_P84 INDEX PARTITION 18 35 196608 24 3 LOB_TABSPC
    5 SYS_LOB0000103064C00018$ $ SYS_LOB_P81 LOB PARTITION 18 11 34603008 4224 48 LOB_TABSPC
    6 SYS_LOB0000103064C00018$ $ SYS_LOB_P82 LOB PARTITION 18 19 33554432 4096 47 LOB_TABSPC
    7 SYS_LOB0000103064C00019$ $ SYS_LOB_P85 LOB PARTITION 18 43 11534336 1408 26 LOB_TABSPC
    8 SYS_LOB0000103064C00019$ $ SYS_LOB_P86 LOB PARTITION 18 51 13631488 1664 28 LOB_TABSPC
    Line: -.

    I don't know the table or index that has these segments to move into the new tablespace.
    Please help me...

    Use the dba_lob_partitions view.

  • How do you attribute the click event of the object created dynamically?

    This is probably an easy question to answer:

    I'm iteration in an XML list, I created via a HTTP Service to load the XML file.  For each object, I want to create a LinkButton which will link to a URL.

    However, since I created the LinkButton object in ActionScript instead of MXML, I can't understand how to assign a click event, for example navigateToURL()

    How to assign as the LinkButton should do the mouse click?

    I know that someone will be able to answer this, then... Thanks in advance!

    myLinkButton.addEventListener(MouseEvent.CLICK,myClickFunction);
    

    and your event listener function

    private function myClickFunction(e:MouseEvent):void{
                        //do something
                   }
    
  • How do you know the name of the database

    As a normal database user... What are the options available for him to get the name of the database. Any user table will give the info?
    select ora_database_name from dual;
    

    HTH
    Anand

  • How do you know the password to use when you try to join a network?

    I have an iPhone 4S. Can someone tell me please how to join a network? I went to settings, my wi - Fi is on. I chose choose a network. But then it tells me to enter the password. But I don't know what password I'm supposed to put in. I thought it was my personal password that I use all the time, but she would not accept. What I am doing wrong? Thank you!

    The network administrator sets the password. Ask them.

  • How do you know the model number for my iPod Touch?

    I need to find the model number for my iPod Touch - this is not about documentation or on the device itself.

    I need to find it to buy a protector screen for her.

    The screen protects tend to be sold by the name of generation, no model in my experience.

    Protections that correspond to the 5th generation will adapt the 6th gen (and iPhone 5 screen covers are so because they are the same dimensions)

    The 4th generation iPod is smaller than the 5th or 6th gen.

    Having said that, the settings, General, about will give you your model number

    It can also be printed on the back of your device, but the print is teeny tiney and almost the same color as your case (I need loop a jeweler to see mine)

  • BlackBerry Z30 receives a call (how do you know the appeal of) city

    Hi, I would like to know if it is possible when you get a call to be able to know that the city of the calling number since like the iphone does.

    Thanks for your help

    I noticed that my phone is not do it either. I come from a galaxy s2 on boost mobile. My old phone it did not for a while until I have an update to 4.0 to 4.1. It was then integrated into the operating system. So, unless you go to the recommendation of the app download, so I'm guessing it won't be available...

    Unless BlackBerry decided to include it in a future update... I was fan of!

  • How do you know the speed of read/write of a flash drive?

    Who knows a program to read/write speed?

    Hi Cristi,

    Thanks for posting in the Microsoft Community.

    An indication of the standard flash drives read/write speeds is the following:

    USB 2.0:

    Sequential write speed range = 4-10 MB/S

    Sequential read speed range = 15 to 25 MB/S

    USB 3.0:

    Sequential write speed range = upto20 MB/S

    Sequential read speed range = upto45 MB/S

    These reading and writing speeds offer a guide to the read/write Flash Drive performance and have been identified in recent tests. Please note that we are changing the components USB Flash Drive at any time based on the availability and cost. This means that the read/write speeds above cannot be guaranteed.

    You can use your favorite search engine to search for this application that measures the speed of read/write of flash drives.

    Warning: Using third-party software, including hardware drivers can cause serious problems that may prevent your computer from starting properly. Microsoft cannot guarantee that problems resulting from the use of third-party software can be solved. Software using third party is at your own risk.

    Hope this information helps. For any other corresponding Windows help, do not hesitate to contact us and we will be happy to help you.

  • How do you know the date and time of synchronization in the windows version?

    Where can I see the date and time of synchronization?

    Is there a toolbar button in the Palette to customize. Move this button to a toolbar or in the Menu box open. When you hover over this button, a ToolTip will appear with the day of the week and time of the last synchronization event.

  • I want to buy an iBook. There are 2 different books with the same name, author, and the book cover. They are different number of pages with different prices. Specifically, all the light that we do not see. " How do you know that we purchase?

    I want to buy an iBook. There are 2 different books with the same name, author, and the book cover. They are different number of pages with different prices. Specifically, all the light that we do not see. " How do you know that we purchase?

    I would get one that has 4700 comments already.

  • How can I know the name of the user-Claude without any password to a blocked telephone

    I have format my ios iphone 5s 9.1 can rephrase and he asked me the user because I the cloud how will I know that the name of the Cloud user without any password

    Did you buy this iPhone of someone else or did you for awhile? If you bought one, you need to contact them and have them remove the phone from their account so that you can use it. If you logged in before that you just need to try to remember of the apple which was signed in the phone ID and then see if you know the password. If you don't remember the password you can reset it to https://iforgot.apple.com/

  • Should I delete the programs of 2004? How can you know what is safe to delete?

    Original title: remove programs

    I think I have a virus.  I see on my computer a few applications with and installed as of 2004.  The computer was purchased in 2007.  When I run it in safe mode, it works fine and all applications have a date of 2007 or newer.  Should I delete the programs of 2004? How can you know what is safe to delete?

    Hello

    This is not an indication of malware. Could be those are placed on the
    computer by the manufacturer of the system and that was the date that firstly, they prepared their
    for massive installation, or if they did not set a date and be used arbitrarily.

    =============================================================

    If you need search malware here's my recommendations - they will allow you to
    scrutiny and the withdrawal without ending up with a load of spyware programs running
    resident who can cause as many questions as the malware and may be more difficult to detect as the
    cause.

    No one program cannot be used to detect and remove any malware. Added that often easy
    to detect malicious software often comes with a much harder to detect and remove the payload. Then
    its best to be thorough than paying the high price later now too. Check with them to one
    extreme overkill point and then run the cleaning only when you are sure that the system is clean.

    It can be made repeatedly in Mode safe - F8 tap that you start, however, you must also run
    the regular windows when you can.

    TDSSKiller.exe. - Download the desktop - so go ahead and right-click on it - RUN AS ADMIN
    It will display all the infections in the report after you run - if it will not run changed the name of
    TDSSKiller.exe to tdsskiller.com. If she finds something or not does not mean that you should not
    check with the other methods below.
    http://support.Kaspersky.com/viruses/solutions?QID=208280684

    Download malwarebytes and scan with it, run MRT and add Prevx to be sure that he is gone.
    (If Rootkits run UnHackMe)

    Download - SAVE - go to where you put it-right on - click RUN AS ADMIN

    Malwarebytes - free
    http://www.Malwarebytes.org/

    Run the malware removal tool from Microsoft

    Start - type in the search box-> find MRT top - right on - click RUN AS ADMIN.

    You should get this tool and its updates via Windows updates - if necessary, you can
    Download it here.

    Download - SAVE - go to where you put it-right on - click RUN AS ADMIN
    (Then run MRT as shown above.)

    Microsoft Malicious - 32-bit removal tool
    http://www.Microsoft.com/downloads/details.aspx?FamilyId=AD724AE0-E72D-4F54-9AB3-75B8EB148356&displaylang=en

    Microsoft Malicious removal tool - 64 bit
    http://www.Microsoft.com/downloads/details.aspx?FamilyId=585D2BDE-367F-495e-94E7-6349F4EFFC74&displaylang=en

    also install Prevx to be sure that it is all gone.

    Download - SAVE - go to where you put it-right on - click RUN AS ADMIN

    Prevx - Home - free - small, fast, exceptional CLOUD protection, working with others
    security programs. It is a single scanner, VERY EFFICIENT, if it finds something to come back
    here or use Google to see how to remove.
    http://www.prevx.com/   <-->
    http://info.prevx.com/downloadcsi.asp  <-->

    Choice of PCmag editor - Prevx-
    http://www.PCMag.com/Article2/0, 2817,2346862,00.asp

    Try the demo version of Hitman Pro:

    Hitman Pro is a second scanner reviews, designed to save your computer from malicious software
    (viruses, Trojans, rootkits, etc.). who infected your computer despite safe
    what you have done (such as antivirus, firewall, etc.).
    http://www.SurfRight.nl/en/hitmanpro

    --------------------------------------------------------

    If necessary here are some free online scanners to help the

    http://www.eset.com/onlinescan/

    New Vista and Windows 7 version
    http://OneCare.live.com/site/en-us/Center/whatsnew.htm

    Original version
    http://OneCare.live.com/site/en-us/default.htm

    http://www.Kaspersky.com/virusscanner

    Other tests free online
    http://www.Google.com/search?hl=en&source=HP&q=antivirus+free+online+scan&AQ=f&OQ=&AQI=G1

    --------------------------------------------------------

    Also follow these steps for the General corruption of cleaning and repair/replace damaged/missing
    system files.

    Run DiskCleanup - start - all programs - Accessories - System Tools - Disk Cleanup

    Start - type this into the search-> find COMMAND to top box and RIGHT CLICK-
    RUN AS ADMIN

    Enter this at the command prompt - sfc/scannow

    How to analyze the log file entries that the Microsoft Windows Resource Checker
    (SFC.exe) program generates in Windows Vista cbs.log
    http://support.Microsoft.com/kb/928228

    Run checkdisk - schedule it to run at the next startup, then apply OK then restart your way.

    How to run the check disk at startup in Vista
    http://www.Vistax64.com/tutorials/67612-check-disk-Chkdsk.html

    -----------------------------------------------------------------------

    If we find Rootkits use this thread and other suggestions. (Run UnHackMe)

    http://social.answers.Microsoft.com/forums/en-us/InternetExplorer/thread/a8f665f0-C793-441A-a5b9-54b7e1e7a5a4/

    I hope this helps.

  • How can I find the name of the photographer? How can I know the location of a photo when it's just a general title...

    How can I find the name of the photographer? How can I know the location of a photo when it's just a general title...

    Hello

    If you expand the keywords, this could give you a little more in detail.  You can click on the username of the photographer to see their portfolio and you can search within their portfolio.

    Thank you

    Bev

  • How can you change the name of a group on messages on Iphone message?

    How can you change the name of a group on messages on Iphone message if some of the people do not use an Iphone?

    Hello

    It is not possible to change the name of the group, because he was such an iMessage feature, because there is in the Group of devices that are not registered with iMessage this be possible.

    I hope this helps!

    Jonty

  • How do you know that the wireless keyboard is enabled

    How do you know if your wireless keyboard is enabled?

    You can see if the keyboard is still on, if you check in the Bluetooth settings and see if your keyboard is still connected. FYI - most of the power is used while you type, not in sleep mode.

Maybe you are looking for