How to keep the (update or delete, insert) triggering action in the table?

Hello experts,
I have create a trigger on update, delete or insert. I insert records into a table which records insert, update, or delete.
I would also like to insert the revival of whick action the trigger as update, delete or insert.

Here's my trigger code.

create or replace trigger BOM_HISTORY_TRIGGER
after update or delete or insert on BOM_HISTORY
for each line
Start

insert into bom_history (BOM_MOD_CODE, BOM_ASSY_CODE, BOM_ASSY_QPS_old, BOM_ASSY_QPS, PPC_SRL_ #, ITEM_ENTR_BY,)
ITEM_MOD_BY, MOD_DATE, ACTION)
values(:Old.) BOM_DIV_CODE,: old. BOM_MOD_CODE,: old. BOM_ASSY_CODE,
: old. BOM_ASSY_QPS,: new. BOM_ASSY_QPS,: old. PPC_SRL_ #,: old. ITEM_ENTR_BY,
: old. ITEM_MOD_BY, SYSDATE, 'delete')
END;

HOW to keep the action in the table.

also, there is error:
WARNING: Trigger created with compilation errors.

Please help to fix it.

Thank you best regards n
Yoann

>
insert into bom_history (BOM_MOD_CODE, BOM_ASSY_CODE, BOM_ASSY_QPS_old, BOM_ASSY_QPS, PPC_SRL_ #, ITEM_ENTR_BY,)
ITEM_MOD_BY, MOD_DATE, ACTION)
values(:Old.) BOM_DIV_CODE,: old. BOM_MOD_CODE,: old. BOM_ASSY_CODE,
: old. BOM_ASSY_QPS,: new. BOM_ASSY_QPS,: old. PPC_SRL_ #,: old. ITEM_ENTR_BY,
: old. ITEM_MOD_BY, SYSDATE, 'delete')
>
Unless I've counted wrong you have 9 mentioned columns but try insert 10 items.

Tags: Database

Similar Questions

  • How to keep the tables in mode fixed?

    Don't know about you but I'm not used to the fact that available in many 3.5.3. moves horizontally and vertically. It distracts me a lot, especially with the touchpad on my Macbook Pro. Is there a way to get rid of this automatic void of white on the sides and bottom. If the table is small, there is no need to make "wobbly", don't you think?

    Someone at - it an idea?

    Hi BassPlaya,

    I think that what you are wanting to do is to reduce the size of the painting that arrays of numbers are sitting on.

    As I know there is no way to do. You can drag the table upwards and to the left, but do not stop when the yellow guides appear or hide you the first lines/colomns and be unable to view/edit the.

    I found this problem bothers me is no longer on the Mac-I set my scroll automatically.

    Quinn

  • How to keep the environment setting

    We need to set disable javascript.

    But,

    after update, it turns to activate.

    You please show me

    How to keep the environment-setting before and after the update of Adobe reader.

    Thank you

    JavaScript is enabled by default in the browsers. Turn off (disable) is a manual process, which must be done by the end user.

    JavaScript must be enabled in order to use the Adobe Download Manager.

    You can download the Installer http://get.adobe.com/reader/enterprise/ offline without having to activate javascript. But there IS NO Adobe Reader (or Adobe Updater) affecting control javascript in browsers, or disable it automatically afer a download.

  • How to keep the cursor in short to a TLF in ScrollPane?

    How to keep the cursor in short to a TLF in ScrollPane? Consider this:

    textFlow.addEventListener (UpdateCompleteEvent.UPDATE_COMPLETE, tlfUpdtHandler, false, 0, true);


    private void tlfUpdtHandler(e:Event):void {}
    textFlow var = e.currentTarget;
    var containerController = textFlow.flowComposer.getControllerAt (0) as ContainerController;
    var contentBounds:Rectangle = containerController.getContentBounds ();
    var tlf_mc = containerController.container;
    containerController.setCompositionSize (containerController.compositionWidth, contentBounds.height);
    var sp:ScrollPane = tlf_mc.parent.parent;
    TPI Update();
    trace (Math.ceil (SP.verticalScrollPosition), Math.ceil (sp.maxVerticalScrollPosition), sp.verticalScrollPosition, sp.maxVerticalScrollPosition);

    sp.verticalScrollPosition = sp.maxVerticalScrollPosition;

    }

    I can't do this as the scroll position will always be in the last line. I would like the scrollpane to scroll to the line where the content is typed.

    Kindly help out me with pointers.

    Thank you.

    Sabine

    Thanks I understand now.  I'm not familiar with the fl classes but here goes.

    (1) using the NaN being the height of composition that tlfUpdateHandler keeps the cursor in view.  It worked with a few simple tests - there may be a few missing details.  I call sp.update so that it catches the total height changes?

    private void tlfUpdtHandler(e:UpdateCompleteEvent):void
    {
    find the current activePosition
    var activePos:int = e.textFlow.interactionManager.activePosition;
    If (activePos == - 1).
    return;
               
    var tfl:TextFlowLine = e.textFlow.flowComposer.getLineAt (e.textFlow.flowComposer.findLineIndexAtPosition (os activeP));
               
    If his view not to scroll into view
    If (sp.verticalScrollPosition > tfl.y: sp.verticalScrollPosition + sp.height)<>
    sp.verticalScrollPosition = tfl.y - 20;    just a number for him give a certain margin above
    }

    (2) If you do not use NaN as the height of the composition (less accurate but works better) I don't think that you will be able to use ScrollPane.  TLF automatically scrolls the lines inside the Sprite using the limits of composition.  Instead, you need to instantiate a control ScrollBar and synchronize the contentBounds with maximum heights and also synchronize the scroll positions.  TLF generates a "scroll" event every time it scrolls the content.  ContainerController has a r/w for verticalScrollPosition properties.

    Hope that helps

    Richard

  • How to keep the Safari in full screen, when it opens instead of small rectangle I enlarge them with green button and how to keep the presentation of upper task bar without always having to lower

    How to open safari in its entirety in a small rectangle and then having to enlarge.  It started to happen.

    How to keep the top toolbar in view rather than having to lower whenever necessary

    Drag the bottom right and left corners of the window to enlarge it to fit the screen.

  • I made my largest site and how can keep the same size for all other sites?

    I did the 2 larger site and how to keep the same size for all pages when I re - open the web browser?

    You can use an extension to set a page zoom and the size of the default font on the web pages.

  • How to keep the Safari line at the top of my screen to disappear?

    How to keep the Safari line at the top of my screen to disappear?

    See the toolbar of Safari mode full screen?

    Launch Safari.

    Click on the Green navigation button to enter full screen mode.

    Move the mouse to the top of the screen.

    When the menu bar and the toolbar drop-down, click on 'View' in the menu bar of Safari.

    In the drop-down menu choose «Always see the toolbar in full screen»

  • How to keep the Macbook pro screen and cin on position?

    How to keep the Macbook pro screen and computer in position 'on '.  I don't want the computer shuts down or cut unless I ask him to...

    If you talk to keep your machine to fall asleep, take a look at the caffeine.

  • How to keep the input value after click on the back button being the ADF

    Hi expert,

    I have a case currently the adf:

    1. I put 'value' in the Label 1

    2. I click on the next button

    3. I click on the "back" button

    4. the 'value' went from 1 label.

    How to keep the 'value' of 1 tag after I click back, do you have any suggestions?

    Kind regards

    Ricky

    Hello

    Where you store the value? Try to store it in a variable pageFlowScope or a property of the pageFlowScope bean.

    value = "#{pageFlowScope.testVar} '"

    value = "#{pageFlowScope.testBean.testVar} '"

    Kind regards

    Ruben.

  • Does anyone know how to keep the name of an image embebed in Illustrator v?

    Does anyone know how to keep the name of an image embebed in Illustrator v?

    Add the file name as a Note in the Panel. From a built-in file is just a raster image in GOT it, there is no links to follow.

  • How to keep the HTML text (i.e. Peragraph) according to the proportions?

    How to keep the HTML text (i.e. Peragraph) according to the proportions?

    Do not disturb (coming down / up) even a letter / word

    Do not disturb (coming down / up) even a letter / word

    Due to levels of zoom browser and personal user settings, there is no possible way to ensure an alignment of text on the web, unless you use images of the text.  Of course, this isn't an option because images of text cannot be indexed by search engines, screen readers or translators of language.

    Nancy O.

  • How to keep the metadata after Correct camera distortion filter?

    Hello

    Anyone know how to keep the metadata information after you have used the Correct camera distortion filter?

    In other words:

    When I need to correct the photo with good camera distortion to the menu Filter option I can't keep the metadata to the final table.

    After correction, I cut the useful part with the rectangular selection tool, and then I chose the file, new, Image to the Clipboard.

    Either the format file that I choose to save the metadata information has disappeared.

    I tried to export the metadata from File, FileInfo, information, and then import the metadata (XMP file) but no result.

    Someone at - it an idea to solve this issue

    Thank you

    This is probably because your using the Clipboard that discards the data.

    Try to crop your photo and recording. You can always cancel the harvest after saving if you want to do something in the photo.

  • Export layers to files: how to keep the size of the canvas

    Hello

    I need to export hundreds of layers of PNG files.

    Unfortunately, the Script cultures on the edge of the layer for each file has different dimensions. How to keep the size of the canvas of the PSD in the exported files?

    Thanks for your help

    PS-Version: MacOS, CS 5.1

    trim to untick if this does not work then

    http://www.filesresidence.com/file/acf00llbo09pg# , try this version it can do what you want.

  • How to keep the original path?

    How will keep the original path after conversion to describe stroke. Sometimes, but I don't know why?

    If the path has a fill it will be the path for the filling as well as the contours of the race. For closed paths that is.

  • How to keep the current, when line rollback AM

    Hello
    When I restore the AM, the current line of the VO ALL was lost, how to keep the line being ALL VO?

    who can help me? Thank you very much!

    Hello

    See [this post | http://forums.oracle.com/forums/thread.jspa?forumID=83&threadID=953872] and the last response to me has the answer to your question

    Jean Lou

Maybe you are looking for

  • How can I create and OMF in fcpx?

    Hello world Is there a way to export an OMF from FCP X? Thank you JPM

  • Shared user on Finder section

    Hello. Just noticed something alien in the Finder on my MacBook. Under the "shared" section, only presented a few things that I've not seen before. First is "bthub4", I would make the assumption is my internet hub to broadband. No wonder that here al

  • How can I use - openURL remote without having to open a new tab?

    I have a kiosk based on the web that I built very long time (before tabbed browsing) that uses periodic calls to: Firefox-remote "openURL (http://start.csail.mit.edu/mit-museum)' to reset the kiosk to the homepage (the function depends on the web fre

  • Monitor connected via HDMI to VGA connector does not

    My Pavilion p6598uk has an ATI Radeon HD5450 with a DVI and HDMI output. I have a monitor connected to the DVI output via a VGA Converter thing, it works very well. I am trying to connect a second display on the HDMI output using HDMI cable to VGA. T

  • Questions of external memory

    I just bought a 8 GB SanDisk to my Fuze 8 GB micro card, and reading this forum has raised some questions for me I thought I should have answered before I try to use it. (1) should I format the card before you drop and drag MP3 files? (2) from what I