Before file is deleted, the record must be insert into another table

Hi friends,

I have to create tabular form to delete some record. Using this tabular form I deleted successfully.
But I want to when I delete a record before deleting record that he should go to another table.



How can I do that.




Ed

Hello

You create before you remove the trigger table.
http://download.Oracle.com/docs/CD/B10500_01/server.920/a96524/c18trigs.htm

BR, Jari

Tags: Database

Similar Questions

  • How to perform an addition of column values in an insert query that would insert in the 3rd column, and the values how to insert into another table.

    I have two tables (2) RESULT TAB (1)

    CREATE TABLE TAB

    (

    NUMBER OF SNO

    A NUMBER,

    B THE NUMBER.

    NUMBER OF THE SUM

    );

    CREATE AN ARRAY OF RESULT

    (

    NUMBER OF SNO

    NUMBER OF THE SUM

    )

    my doubt is:

    (1) I want to insert a table TAB, my question is how to insert a column to the SUM using the column A AND B... Here im adding two values of the column and store result in the AMOUNT column.

    SNO   A  SUM           

    1 100 150 250

    2 300 100 400

    I want to like this, it is possible with single insert query?


    (2) at the time of the insertion TAB of values that SNO, and the values of table TAB $ insert in the table of RESULTS... is it possible these two inserts at the same time?

    in fact, im using another this table.fro TAB and easy to understand I write like that, please solve this problem

    First, you post in the wrong forum as this one is only for Oracle's SQL developer tool. So you might ask your question in the general forum of SQL.

    Second, you might solve your problems with bind variable:

    Insert tab

    (sno, a, b, sum)

    values

    (: SNO,: A: B: A + B :))

    You should not use sum as column name because it is a reserved word.

    More you cannot insert into two different tables with a single SQL, but you can use PL/SQL to do this:

    Start

    insert into tab values (: SNO,: A: B: A + B :);)

    insert into result values (: SNO,: A + B :);)

    end;

    If you meet sno from a sequence, you could do something like this:

    Start

    insert into values tab (seq_sno.nextval,:,: B,: A +: B) return sno in: SNO.

    insert into result values (: SNO,: A + B :);)

    end;

    Hope that helps,

    dhalek

  • Sorry, unable to save your movie. Find missing files or delete the unusable items in your project and then try again. "Error: 0 x 87160129" during video editing in Windows Movie Maker/Windows Live Movie Maker

    I use the same device which was used to make movies in the past with no problems. The error message is sorry, unable to save your movie. Find missing files or delete the unusable items in your project and then try again. Error: 0 x 87160129

    I've never had any problems with this before and made more than 100 movies using WLMM or WMM. Thanks for any help. Would that my camera settings? I use a Lumix.

    I just found out what the problem is freakin ' and the solution. If the inserted videos have different "video codec" then it will not work!

    Before adding videos to Movie Maker, throw in a video converter and convert them all. (Even if the original format is WMV, convert again to WMV) that will ensure the output videos have the same codec!
    This solved the problem for me, hope, it does for you too...
  • I accidentally delete the record microphone to sound property. sleekbook 14 tsb132tx

    help please, I accidentally delete the record microphone to sound property.

    where can I download the microphone for my sleekbook 14 B132tx TS.

    help please someone.

    Thanks in advance.

    Hello

    Do a right-click the speaker icon in the taskbar, then select recording devices.

    Right-click on an empty area of the next window and enter a tick against the "Show disabled devices" and "Show disconnected devices".

    If your microphone will now appear in the list of devices, right click, and then select activate.

    Kind regards

    DP - K

  • CANNOT OPEN OUTPUT FILE, CANNOT DELETE THE OUTPUT FILE

    Try to patch effect for Deskjet 722C for Windows 7.  Not able to replace the existing .dll files.  Error messages: could not open the output file, cannot delete the output file.

    Thank you for your response.  I found these solutions but still had problems.

    However, I was able to bypass Windows with a DOS command that did the trick.

    C:\Windows\System32>copy C:\temp\hpvdb720.dll C:\windows\system32\spool\drivers\x64\3

  • delete the record

    I've have my suite creative CS3 and you want to delete the record from my account.

    Hey April,

    I recommend you contact customer service about her.

    Kind regards
    Rahul

  • How this code deletes the record from the database company?

    Hello, I'm at the beginner level and I would like to learn more about this code of a book. I have several questions below, I hope I can get any help
    Thank you

    · How this code deletes the record from the database company?
    · Where is the connection to the db?

    · What part or command is that deletes the record?
    · What does that mean?
    < link rel = "stylesheet" href = "styles.css" >

    < html >
    < head >
    < /title > < title > test code
    < link rel = "stylesheet" href = "styles.css" >
    < / head >

    < body >

    < h1 > delete a record from the company < / h1 >

    < table >
    < action = "CompanyDeleteForm.cfm cfform" method = "POST" > "
    < b >
    < td > < table > C_ID
    < td >
    < cfinput type = "Text".
    name = "C_ID".
    message = 'Please enter the C_ID '.
    validate = "integer".
    required = "Yes".
    size = "22".
    MaxLength = "20" >
    < table >
    < /tr >
    < b >
    < td > < table >
    < td >
    < input type = "submit" value = "Delete a rec of the company" >
    < table >
    < /tr >
    < / cfform >
    < /table >

    < / body >
    < / html >
    -----------------------------------------------

    This isn't. He sends the value of C_ID in a form variable to an action (CompanyDeleteForm.cfm) page that would delete code.

    Phil

  • One more time: Houston-25014: the record has been changed by another user. Please try again.

    Hello

    JDev 11.1.2.4

    I have a workflow where I execute with params VO, and then navigate to a view activity. On this page fragment, I click on a button that calls a PL/SQL procedure in the module of the application. The proceduce updates a row in the table. After this method call, I navigate to the same run with params.

    Execute with params-> view activity method-> call-> Execute with params (the app module method)

    But I have an exceptional:

    oracle.jbo.RowInconsistentException < DCBindingContainer > < reportException > [2669]: Houston-25014: the record has been changed by another user. Please try again.

    at oracle.jbo.server.OracleSQLBuilderImpl.doEntitySelectForAltKey(OracleSQLBuilderImpl.java:1078)

    at oracle.jbo.server.BaseSQLBuilderImpl.doEntitySelect(BaseSQLBuilderImpl.java:552)

    at oracle.jbo.server.EntityImpl.doSelect(EntityImpl.java:8311)

    at oracle.jbo.server.EntityImpl.populate(EntityImpl.java:6975)

    In the log, I see the error.

    Compare entity < EntityImpl > < compare > [2305] has no attribute Addr1

    < EntityImpl > < compare > [2306] original value: COURTUPD

    Target value < EntityImpl > < compare > [2307]: COURTUPDfewfew

    The update in the procedure updates this field. The procedure performs validation, I made the call.

    I suspected that the case of ghost ADF so I put update on update for this field, but it does not work.

    Any idea on who is the user who changes my file without telling me?

    Thank you

    You have something in your entity that has changed.  Call rollback on your transaction module app before executeWithParams put it in a clean condition.

  • [11g] ORA-22993 when extracted xmltype great values in the outbreak of the BIU as a CLOB in another table

    [I ask nicely for a few comments for this question.

    Someone else can reproduce it with the test below?

    Is my code invalid or false?

    Or what is the problem here?

    -Thank you

    Frank

    ]

    Hello

    Oracle Database 11 g Enterprise Edition Release 11.2.0.3.0 - 64 bit Production

    PL/SQL Release 11.2.0.3.0 - Production

    CORE Production 11.2.0.3.0

    AMT for Linux: Version 11.2.0.3.0 - Production

    NLSRTL Version 11.2.0.3.0 - Production

    Trigger Before Insert or Update to a table, I invoke a PL/SQL package function to check the size of an xmltype column (passing as IN OUT NOCOPY).

    PL/SQL functions retrieves the xmltype. GetClobVal(), check its size, and when it is beyond a limit, he tries to insert the data into another table (GTT - global temporary table).

    Finally, it changes the value of the value of the column of xmltype to the shorter XML (just by referring to the corresponding record in the TWG).

    But the Insert SQL in the TWG operation strike ORA-22993: specified input is greater than the amount actual source.

    I don't know why this happens. In the internet I only find references on importing files in lob/clob.

    Anyone have the same problem?

    I know that you prefer to have a sample program to demonstrate the problem - I'll try to post one, but it will take time.

    But maybe someone can help me based on the information above already.

    -Thanks a lot!

    Best regards

    Frank

    I have reproduced the issue.

    It must be a bug.

  • Problem with copying of the contents of one database to another table

    I'm trying to update a table on my machine to test based on data that is located on the production server.
    I already have links to configuration database but whenever I try to do anything with the table I get the following message

    22992 00000 - "cannot use LOB Locators selected from the remote tables.

    So I searched the web and read that I could insert into a table from a database link. So I created a temporary table based on the table on the production server, and then I tried to run this code

    insert into [email protected]
    Select * from [email protected]

    It gave me the above error.

    Any help would be greatly appreciated.

    22992, 00000, "cannot use LOB Locators selected from the remote tables.
    * Cause: A remote LOB column cannot be referenced.
    *: Deletes the reference to the type LOB data in remote tables.

    Push the data instead of the data.

  • Insert into a table using the check boxes

    Hello

    I want to insert into a table emp when I press a button "Insert" area of employee report. the SQL query for the report is

    SELECT HTMLDB_ITEM. CheckBox(1,rowNum) "",
    x.EmpNo,
    x.Ename
    de)
    Select empno htmldb_item.hidden(2,empno),
    htmldb_item. Text(3,Ename) ename from emp) x
    order by 2

    I created the following process:

    declare
    v_test varchar (10);
    Start
    BECAUSE me in 1.HTMLDB_APPLICATION. G_F01. COUNTY
    LOOP
    v_test: = HTMLDB_APPLICATION. G_F02 (HTMLDB_APPLICATION. G_F01 (i));
    dbms_output.put_line (v_test);
    insert into emp(empno,ename,job,mgr,hiredate,sal,comm,deptno)
    values(v_test,'A','B',10,01-May-81,200,1,10)
    WHERE empno = HTMLDB_APPLICATION. G_F02 (HTMLDB_APPLICATION. G_F01 (i));
    END LOOP;
    end;

    But IT is not working properly, infact, it gives me errors like:

    ORA-06550: line 9, column 47:
    PL/SQL: ORA-00933: SQL not correctly completed command
    ORA-06550: line 8, column 1:
    PL/SQL: SQL statement ignored

    7 dbms_output.put_line (v_test);
    8 insert into emp (empno, ename, job, mgr, hiredate, sal, comm, deptno)
    9 values(v_test,'A','B',10,01-MAY-81,200,1,10)
    10 WHERE empno = HTMLDB_APPLICATION. G_F02 (HTMLDB_APPLICATION. G_F01 (i));
    11. END OF LOOP;

    Any help?
    Additional info: table Emp is the default table in the database

    This is an example showiing how such a process must be put in place:

    http://Apex.Oracle.com/pls/OTN/f?p=31517:95

    Denes Kubicek
    -------------------------------------------------------------------
    http://deneskubicek.blogspot.com/
    http://www.Opal-consulting.de/training
    http://Apex.Oracle.com/pls/OTN/f?p=31517:1
    -------------------------------------------------------------------

  • How to delete a picture in Windows Photo Gallery tag files or specific files of photo files without deleting the image completely out of all of these places, leaving the image in one place vs. have in several places?

    I'm trying to manage my photos already imported and downloaded on my computer.  There is a master "All photos and videos" folder in the Windows Photo Gallery all in the top left of this program.  Below that is a folder "Images".  Below that are "Tags" with a certain number of 'labelled' folders below.  Lower in another main 'Images' folder with a folder of the yellow file beside him icon.  Here's this file, a number of other folder also named with the file yellow folder icon next to them as well.

    What I'm trying to do is manage all these photos and who want to keep a copy of an image in one of the folders of images with an icon of yellow folder next to him.  However, if I delete an image from anywhere in one of the places mentioned above, no matter which, a copy or copies of the image lies, the given image and all copies in one of the other place listed in the first subparagraph above are deleted and this specific photo is present ONLY in the recycling bin.

    How can I do what I want to do here?  I hope that's clear enough!

    Thanks a lot (someone)...

    Hi EKahn,

    When you delete a file from the library, you do not your computer delete it. If you delete a folder, photo library no longer displays images and videos that were in that folder, although the file remains on your computer.

    You can remove the folders that you have added to the Gallery of photos at any time, but you cannot remove files that are in the default Photo Gallery. Remove a folder prevents him from appearing in the photo gallery. If you delete a photo, it is deleted from your computer as if you deleted the images folder.

    Select the pictures and videos are displayed in Windows Photo Gallery
    http://Windows.Microsoft.com/en-us/Windows-Vista/choose-which-pictures-and-videos-are-displayed-in-Windows-Photo-Gallery

    I hope this helps!

    Halima S - Microsoft technical support.
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • How to delete the record from the classic report?

    Hi all

    I am currently working in the APEX 4.2.5.

    I did a classic report and I want to click on the link 'delete' to remove the record.

    But how can I do this?

    Thanks in advance

    See this recent thread on the forum: https://community.oracle.com/thread/3687421?start=0&tstart=0

    Thank you

    Tony Miller
    Software LuvMuffin
    Ruckersville, WILL

  • Impossible to delete the record from the table using the form

    I have a stored procedure (function, actually) that allows an administrator to manually delete a record in a table.

    When I call my form there will be no effect. The record remains in the table.

    In both cases, I connect to the database to the same user.

    I am able to call a test function in the database which returns a field in the record, so I think I can at least communicate with and retrieve results from the database using a stored function. As soon as I approach him "select" "delete from", no luck.

    If I try to run the SQL in my form with a statement of FORMS_DDL, it seems to run smoothly when I not in the code in the debugger, but it had no effect. FORMS_SUCCESS reports TRUE if DBMS_ERROR_TEXT has the following: ORA-01403: no data found. I don't know how the DBMS_ERROR_TEXT is that FORMS_SUCCESS is not set to FALSE.

    Any ideas as to why I am unable to remove using my form but can when you call the function registered directly/manually?

    Using Oracle Forms & DB 10.0.2.0.1.

    Patrick,

    After each Insert / Update / Delete statement, you have to COMMIT . Then only it will be in select statements.

    Kind regards

    Manu.

  • Icon file moves during the recording of the most recent Version

    When I save a Word (2007 worms.) document on my desktop, the file that I had opened became the back-up and the new file is placed in the queue of files on the left side of the desktop.

    It is horribly annoying because I keep the files associated with a particular project in an area of the screen, but now whenever I save a file, it moves.  A file which was now at the top right of the screen

    What should I do to keep the place of the file on the screen when I save it?

    Good morning Chairman Meow,

    Thank you for visiting the Microsoft answers community.

    When you see the new file, you see the name exactly, or is it a ~ at the beginning of the name?
    If it has a ~, then you view hidden files that you don't really need to be seen, and you can stop everything just to view hidden files in the order that it stop.

    If this isn't the case, I suggest to uninstall and reinstall Office 2007 to determine if this solved your problem.

    As this is related to the office, if these suggestions do not resolve your problem, please consult the Microsoft Office communities for more specific support on office products at the: http://www.microsoft.com/office/community/en-us/FlyoutOverview.mspx

    Hope this helps Chris.H
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

Maybe you are looking for

  • How to remove email accounts

    How can I delete all emails read in my accounts?

  • How long it take for EZ Serv to get a replacement LCD?

    I just sent my beloved X 61 Tablet for return to the problem of detachment of bezel/LCD (SXGA +). I was told by EZ Serv information center and EZ Serv representative that they have to order a spare for my LCD. They will specify no time as it takes to

  • Cannot open pps files in Incredimail

    Open pps files in incredimail When I try to open emails in incredimail which are pps I can't open them why is - that I was told to get the power point, but this is only forOutlook express I think.

  • Display a hexadecimal value

    Hello, I wanted to take an integer value and display it as a hexadecimal value. I'm not sure how to proceed. Thank you Scientist

  • Exit South on Wndows 7

    Hello... I just bought a new laptop with Windows 7 and I can't find the MIDI output configuration that was easier to Wndows XP coz that's just as well as the audio output... Could you please help me find? ... I use an external sound card and my MIDI