APEX: Triggerv Script updates more than necessary

I have a table with numerous editable fields, with a script simple trigger below.

Intend is so the user updated Q1, Q2, Q3, Q4, and then the trigger updates the date 'LASTMODIFIED '.

The trigger works very well and I was very happy, but I noticed that in other areas (e.g. the 'comment' field)

When they are updated, they also trigger the 'LASTMODIFIED' to be updated, despite putting me specific conditions, as shown.

Question in mind is, I use the trigger in the right way?

If so, then what can I do to end so that the trigger does not update the other fields?

so I use "else if"; I don't think that is to enable the trigger.

create or replace TRIGGER "MyTable_BIU_TRG".

BEFORE THE INSERT OR UPDATE

ON MyTable

FOR EACH LINE

BEGIN

If

: NEW. Q1! =: OLD. T1 or: OLD. Q1 is null or

: NEW. Q2! =: OLD. T1 or: OLD. Q2 is null or

: NEW. Q3! =: OLD. T1 or: OLD. Q3 is null or

: NEW. Q4! =: OLD. T1 or: OLD. T4 is null

then

: NEW. LASTMODIFIED: = SYSDATE;

END IF;

END;


Help, please!



Colon, as in the documented example no.

CREATE OR REPLACE TRIGGER print_salary_changes

BEFORE ON DELETE or INSERT or UPDATE employees

FOR EACH LINE

WHEN (NEW.job_id <> 'AD_PRES')-don't print information on the President

DECLARE

Tags: Database

Similar Questions

  • the use of div tags more than necessary?

    Is there a downside to the use of div tags more than necessary?
    The size of the file is probably negligible. Are there problems with accessibility?

    .oO (jameswoody)

    > Is there a downside to the use of div tags more than necessary?

    This is an inefficient and bloated code.

    > The size of the file is probably negligible. Are there problems with accessibility?

    N °

    Micha

  • Apex 3.2 passing more than 3 values in a report link

    Apex 3.2

    I have a report that contains a link to a page to update.

    The report is based on a table with a key, based on 5 columns in the table.

    I need to put these 5 items on the page updated with the values in my report with a report link.

    The standard report link only 3 values.

    How can I do this?

    Gus

    A very common question with a number of solutions

    Oracle - passing more than 3 points in a binding column reports - Stack Overflow

    Can I make more than 3 values in column with a link to the column?

    OraFAQ Forum: Application Express & amp; MOD_PLSQL & raquo; How can pass more variable in the column link

  • Problems of updating Windows 7 x 64 (which have not been able to update more than one year)

    Hi all, I'm a newbie here.

    So, as the title says, I have not been able to do an update on my Vaio more than a year.

    All this started when I thought or could have a virus. I have everything backed up quickly & did a clean re-installation of my windows.

    Since re-install I couldn't update. I tried to do the updates manually - some work, but the important ones which do not. I contacted Microsoft Support. They went through my laptop a few times & they can't even solve the problem. However, they told me I have corrupted files in my system that allow me to make updates or reinstall my windows to factory settings (Yes, I thought)

    So my question is... How can I solve this problem? None...

    Anyone had this problem?

    Thanks, Denza.

    Please download no more than three copies of your files to dump in the form of files shared your onedrive with a link here

    The dump file will be created in c:\windows\minidump. You may need to change your settings in Windows to be able to view the file. To show hidden files type Folder Options in the search box above the Start button and select view advanced settings and check that the box "display files and folders" and 'Hide protected operating system files' are not checked. You may need to scroll down to see the second element. You should also make sure that the box before "Hide extensions of known file types" is not checked.

    What is your computer brand and model? If not a branded computer, what is your motherboard brand and model?

    Please download and run the display driver and download a copy of the report he produced on your OneDrive. To obtain a report all drivers Select Edition, select all followed by file, file format record selected Items.Text please.

    http://www.NirSoft.NET/utils/DriverView.html

    Please provide a copy of your system information file. Type the system information in the search box above the Start button and press the ENTER key (alternative is select Start, all programs, accessories, System Tools, system information). Select file, Export and give the file a name noting where it is located. Not to place the cursor in the body of the report before exporting the file. The system creates a new information file system each time system information is available. You must allow a minute or two before the file is completely filled before exporting a copy. Please download the file to your OneDrive, to share with everyone and post a link here. If the report is in one language other than English, please indicate the language.

    For assistance OneDrive see paragraph 9.3

    http://www.gerryscomputertips.co.UK/MicrosoftCommunity1.htm

  • Stupid MDX script takes more than 10 hours to run in ASO

    I inherited a stupid MDX takes more than 10 hours to run in ASO. This formula is member of the map called forecast scenario & real scenario.

    This is the equivalent of ASOsamp of it:

    I think I can shorten it to:

    (1) are the following equivalent?

    IIF (([ActualScenario],[Expense]) + 0 <>0)

    can be replaced by

    IIF (NonEmptySubset ([ActualScenario], [Expense])

    ?

    2)

    The reason I can remove almost all the lines for the PERIOD - his first line, it is already check if [period] is zero. Then, it updates level 0.

    So why would we want to write the code to update (period) levels 1, 2 and 3?  ASO is supposed to automatically consolidate all other levels 1 to 3. So why is this MDX aggregating levels 1 to 3?

    (3) in fact, I don't know why we need this Case statement:

    CASE WHEN ISLEVEL ([period]. CurrentMember, 0)

    I thought THAT MDX in Member roadmap scenario only works on members leaves (zero level).

    PS.

    The time dimension is simply

    Year

    -T1

    -Jan

    -Feb

    -Mar

    -Qtr2

    etc.

    Thank you and Merry Christmas / happy holidays!

    PS. I changed my name to "SEEP limits."

    Rolling up the quarters is the real problem. Since you have a verification statement to see if you are at level 0 do the math, you're cutting everything above level 0. Yes, it's fast - but it's because you're excluding senior level members.

    I don't know how this cube is great, but you can possibly use this formula with a procedure calc to write the data to another Member. In this way the aggregation would work without any formula.

  • Error ORA-01422 apex: exact fetch returns more than the required number of line

    Hi people,

    Apex 4.1
    I have a page that works like a charm.

    Based on my application I need I have to perform the same operation for the different regions. As a quick and better method, I copied the page and branched, it inspires tab for this region.

    The problem is that the original page works fine.
    I haven't changed anything except the parent set to this copied page tab and works that I find with the above error.

    It allows me to make the first entry on this page, but when I try to access the page again it gives me this error.

    The error in detail is as below:

    is_internal_error: false
    ora_sqlcode:-1422
    ora_sqlerrm: ORA-01422: exact fetch returns more than number of lines
    Component.type: APEX_APPLICATION_PAGE_PROCESS
    Component.ID: 214936714355373108
    Component.Name: EMP_LEAVE_INFO line
    error_backtrace:
    ORA-06512: at line 1
    ORA-06512: at "SYS." DBMS_SYS_SQL", line 1926
    ORA-06512: at "SYS." WWV_DBMS_SQL', line 973
    ORA-06512: at "SYS." WWV_DBMS_SQL', line 999
    ORA-06512: at "APEX_040200.WWV_FLOW_DYNAMIC_EXEC", line 806
    ORA-06512: at "APEX_040200.WWV_FLOW_DML", line 336
    ORA-06512: at "APEX_040200.WWV_FLOW_PROCESS", line 332

    >
    As a quick and better method, I copied the page and branched, it inspires tab for this region.
    >

    Copy paste is never advisable. It can be fast in some cases, there is an anti-pattern.

    Be aware that the automatic extraction of the APEX line is based on a component of demand.

    It is possible that your automatic rowfetch is based on the element of your previous page. If you for example to change the name of the table, but do not change the reference is the primary key value, then you can pass a value to your table that was not unique. This would result in ORA-01422.

    Find the value of the session element and run your query.

    Concerning

    Nico

  • New APEX listening port and more than 32K

    Hi all

    Is the problem with the recording of high values (greater than 32 k) solved with the new listener APEX 4.0?

    Thank you
    Fadi.

    Samara says:
    Is the problem with the recording of high values (greater than 32 k) solved with the new listener APEX 4.0?

    The Apex team must answer as to what is expected for Apex 4.0, but the 32 k issue is twofold:

    (a) the bridge between the web browser/server and the database should handle more than 32 K string values (IE. CLOB).

    (b) the framework of the Apex (the procedure 'accept' who gets all values when you submit a page) must manage more string of 32 k values (IE. CLOB).

    Now, the problem with one) should be easy enough to fix with the new listener to the Apex. If you want to use Microsoft IIS as a web server, see my [gateway Thoth | http://code.google.com/p/thoth-gateway/] which already supports the CLOB parameters. You'll always need to manage registration of great values through an application process (Ajax), due to problem b), which is that the framework of Apex does not use CLOB parameters in the current version.

    However, since one) can be fixed easily in the listener of the Apex, but for Oracle set in the embedded PL/SQL gateway and in mod_plsql would probably take a lot longer because it follows the (slow) the database release cycles, I don't know if the Apex team will change the frame if the feature can only be used on one of the three doors (officially supported).

    -Morten

    http://ORA-00001.blogspot.com

  • How can I update more than one PC on a download?

    I have a slow internet connection & I don't want to download the update 5 times; We once for each computer. Where is stored the update? It does not appear as part of the download.

    You skipped 3 major versions, so you would not get a "update".

    When you miss one Firefox update, Firefox will automatically download the entire current version as the "update" in an uncompressed form - and that is like 20% larger than the Firefox setup package for the current release for installation.
    

    Download the latest version from here. Install it on the PC you used for the download and then move it to a storage device removable for installation on the other 4 PC.

    http://www.Mozilla.com/en-us/Firefox/

  • updates more than 100

    I got a friend emachines desktop computer and windows mean I have 102 updates to install - is the most important and recommended
    I tried install some but continue to get the error messages - what do I do?

    is there a particular order that I have to follow - I have windows vista basic 2006 version - tried to put a screenshot of some of them here but will not let me

    Make sure that there is no any program prevents the installation

    I suggest running windows update troubleshooting

    http://support.Microsoft.com/mats/windows_update/

    For more information about installation of sp1 errors

    http://support.Microsoft.com/kb/956699

    If this doesn't help you cand service packs manually from here download

    http://Windows.Microsoft.com/en-145/Windows/service-packs-Download#sptabs=Vista

  • Question about photoshop take a long time to update (more than 1 hour)

    Photoshop has attempted to update something for awhile. Since yesterday

    until now, so I tried to stop the computer 2 times but it still happen

    When I open the program.

    adobe issue.JPG

    Hi jerickd,

    Please close all Adobe programs and restart the computer, and then try the manual download for Photoshop link below update 2015.1.2

    Reference: http://prodesigntools.com/swupdl/updates/oobe/aam20/win/AdobePhotoshopCC2015-16.0/16.1.2/s etup.zip

    Kind regards

    Mohit

  • We will look for answers why my printer prints more than necessary?

    See my printer to print a test page after each time I use it.

    There are several reasons why you may receive an additional page.  It would be useful that you described what you see on the 'test' page, you see.

    This will only occur when you print from Microsoft Word or is it when you print from other applications (for example, Notepad).  If so, then go to tools > Options, click the print tab, and under "Include document" uncheck "properties of the Document.

    If this happens to any application that you print from, open Printers and faxes, right-click on your printer icon, then select the Advanced tab.  Click on the 'séparation Page' button and make sure that there is no entry for a separator page.  When it exists, delete it and OK your way out.

    If none of the above work:

    • What version of Windows you have, including the service pack (click right my computer and select Properties, if you do not know)
    • When the problem happens (all applications or only applications)
    • What is the make and model of the printer
    • What's on the page 'test '.
    • How long it lasts (i.e., what happened just before the problem)
  • "Installing Update 2 of 3" running more than 3 hours

    We have a laptop Toshiba Satalite U305-S5077 under Vista Home Premium.  My wife shut the system down this morning and it started to install updates more than 3 hours ago.  There 'if please do not turn off or unplug your machine. Installing Update 2 of 3 "on the screen.

    What should we do?  Is it likely to compleate on its on?

    There was a similar post, but it does not say if the system must stop or give an indication of what is a reasonable amount of time to wait, if it should take 5 hours I do not kill him 4 and to restore the system and do it again.

    Thank you

    It is not safe to shut down the computer during the installation of the updates. Although if it freezes you have to. You can perform a restore of the system to a point before you install the updates and then install the updates which has not installed again.

    Thank you
    Let us know if we can provide any information additional Martin
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think

  • After updating to the latest version of Itunes, it works really slow, takes more than a minute to recognize my Iphone and will not correctly backup my Iphone

    IPhone 6 64 IOS 9.3.1 runs the latest version of ITunes 12.3.3.17

    After I updated to the latest version of ITunes, when I run the synchronization, it goes through the six steps, and then returns the message that the backup has failed

    Running on a 64-bit Windows 8.1 Dell computer.

    ITunes now works much more slowly. Takes a long time to load. It takes more than a minute after I plug in my Iphone for the IPhone to be recognized by Itunes.

    I rebooted the machine. Remove the locked file. All have failed to solve the problem

    For general advice, see troubleshooting problems with iTunes for Windows updates.

    The steps described in the second case are a guide to remove everything related to iTunes and then rebuild what is often a good starting point, unless the symptoms indicate a more specific approach. Review other cases and a list of documents to support further down the page, in which case one of them applies.

    More information area has direct links with the current and recent if you have problems to download, need to revert to a previous version or try the version iTunes for Windows (64-bit-for old video cards) as a workaround for the problems of performance or compatibility with third-party software.

    Your library must be affected by these measures, but it is also related to backup and recovery advice if necessary.

    If you have tried the suggestions above without success, then another option is to go back to the previous version of iTunes that has worked for you. See the roll back tips to installers of iTunes. Roll back of 12.3.3 will be to restore the pre-upgrade library in the previous iTunes libraries folder.

    TT2

  • How can I update my iPhone more than 8.4 of iOS iOS 9.3.5 6?

    How can I update my iPhone more than 8.4 of iOS iOS 9.3.5 6?

    You do not have. You can only upgrade to the current version which is 10.0.2

  • I can record is more than all of the new bookmarks after update to Firefox 40.0.2. I have over 1000 bookmarks and also use xMarks.

    I can record is more than all of the new bookmarks after update to Firefox 40.0.2.
    I have over 1000 bookmarks and also use xMarks.
    I tried to remove 5 bookmarks and save a new bookmark, but it does not work.
    When I click on the bookmark star, stars in the bookmarks folder jumps, but does not record, it does not offer the possibility of filing in the subfolder right it me and the star is not awarded (there should be one filled with stars when the Web site is updated bookmark)

    Thank you for your help. I tried the maintenance of places without success. I have disabled xMarks, but it made no difference, I couldn't save all new bookmarks. I went on the site help above and deleted the "places.sqlite" file and recreates a new file, but it didn't work. I uninstalled Firefox full using IOBit Uninstaller and reinstalled, but I found this program does not delete the profile folder (used to have a checked during uninstall of Firefox, but it seems to have disappeared in the latest versions). The problem persisted.

    Finally, I took a screenshot of all my addons. Then, I uninstalled Firefox again, then delete the entire folder profiles (located very usefully described in the second link above https://support.mozilla.org/kb/Bookmarks+not+saved#w_fix-the-bookmarks-file )
    I reinstalled Firefox, reinstalled xMarks and connected and transferred all my favorites, I reinstalled all my previous addons and ALTO - it now everything works perfectly!

    Thank you for your help

Maybe you are looking for