How to upgrade a table within a trigger

I have a simple question.
Suppose I have the table TAB1 with fields F1 and F2 and I created the following trigger;

create or replace trigger insert_TAB1
After Insert on TAB1
for each line
declare

Tab1 v_F2. % Of F2 type;

Start

...
...
v_F2: =...;
...
...

Update TAB1
the F2 value = v_F2
where F1 =: old. F1;

end;

If I try to insert a record into TAB1, I get:

ERROR on line 1:
ORA-04091: table tab1 is changing, function of triggering/can not see
ORA-06512: at "INSERT_TAB1", line 47
ORA-04088: error during execution of trigger 'INSERT_TAB1 '.

Can you help me?
What I want is to write a trigger that inserts a value into a field after that insert was performed in the table.

Thank you!

Hello

Thank you for this.

The trigger can be written like this

create or replace trigger insert_TAB1
before insert on TAB1
for each row when(new.F1 is not null)
begin
:new.F2=..;
end;

see you soon

VT

Tags: Database

Similar Questions

  • Collections of SQL / objects - how to store a table within a column?

    Hi guys,.

    I have a current table on production... I'm only allow you to add a column to her...

    The simplified scenario is...

    I have a table

    CREATE TABLE PLAN_TRANSACTION
    (THE ARGUMENT PLAN_ID VARCHAR2 (20) DEFAULT SYS_GUID();)
    PLAN_NUMBERS_TYPE COLUMN? );

    For the PLAN_NUMBERS column, I want to store all types and numbers associated with the PLAN_ID.


    In general, it would be

    CREATE TABLE TYPES_AND_NUMBERS
    (TYPE VARCHAR2 (20),)
    NUMBER OF NUMBERS);
    ---------------------------------
    Type A, 12345
    Type B, 12345
    Type A, 54211

    etc.

    Now instead of add another additional column PLAN_ID TYPES_AND_NUMBERS table and create a relationship of foreign key with PLAN_TRANSACTION.
    I want to keep the table inside the table PLAN_TRANSACTION column.


    I think doing this


    CREATE TYPE TYPES_AND_NUMBERS AS OBJECT
    (TYPE VARCHAR2 (20),)
    NUMBER NUMBERS);

    CREATE TABLE AS TN_TAB TYPE OF TYPES_AND_NUMBERS;


    CREATE TABLE PLAN_TRANSACTION
    (THE ARGUMENT PLAN_ID VARCHAR2 (20),)
    PLAN_NUMBERS TN_TAB
    )
    THE NESTED TABLE PLAN_NUMBERS
    STORE AS NESTED_PLAN_NUMBERS;


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

    My question is...

    Q1) is my way of creating a correct nested table?... creating an object type, then an array of objects, then storing this table within a column in a nested table...

    Q2) is otherwise easier to create a nested table as I quite new in object_relational--concepts simply, I felt quite concerned create an object to simulate a line. and create an array of object to store objects, and then put it inside a column.

    Q3) possible for me, or is it something like create type TN_TAB as table of (varchar2 TYPE, numbers);


    Thanks a lot guys!

    Best regards
    Noob

    A nested table is the easiest way to resolve this condition.
    Other solutions might involve some large objects (CLOB or XMLTYPES), but without knowing anything commercially, I think a nested table is the best way.

  • How to upgrade the table based on data in multiple tables?

    TABLE1:

    =======

    TXN_ID | NAME

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

    TX001 | null

    TX002 | null

    TX003 | null

    TX004 | null

    TX005 | null

    TX006 | null

    TX007 | null

    TX008 | null

    TX009 | null

    TABLE2

    ========

    TXN_ID

    -------

    TX002

    TX004

    TX005

    TX006

    TABLE 3

    ========

    TXN_ID

    -------

    TX001

    TX008

    TX009

    If TABLE1. TXN_ID present in TABLE2, I should update the form ABC TABLE1.NAME.

    If TABLE1. TXN_ID present in table 3, I should update TABLE1.NAME as XYZ.

    I can update this by running 2 scripts.

    UPDATE TABLE1 SET B.SID = 'ABC' WHERE

    IT EXISTS (SELECT 1 FROM TABLE2 B WHERE B.TXN_ID = A.TXN_ID);

    UPDATE TABLE1 SET B.SID = "XYZ" WHERE

    IT EXISTS (SELECT 1 FROM TABLE 3 C WHERE C.TXN_ID = A.TXN_ID);

    How can we do this in a single script? I have more than 10 tables as TABLE2 and TABLE3.

    Output should be:

    TABLE1:

    =======

    TXN_ID | NAME

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

    TX001 | XYZ

    TX002 | ABC

    TX003 | null

    TX004 | ABC

    TX005 | ABC

    TX006 | ABC

    TX007 | null

    TX008 | XYZ

    TX009 | XYZ

    Assuming a table2 and table3 will not have same tnx_id you can do.

    merge into table1 t1

    a_l'_aide_de)

    Select txn_id

    name

    de)

    Select txn_id, "TABLE2" name

    from table2

    Union of all the

    Select txn_id, name "TABLE3."

    table 3

    )

    ) t2

    on)

    T1.txn_id = t2.txn_id

    )

    When matched then

    set t1.name, t2.name = update

  • How to upgrade a table column using the values in the Oracle collection

    create or replace procedure test_coll
    
    IS
    
    CURSOR upd 
    IS
    SELECT CONTACT_NAME FROM Supplier_16;
    
    TYPE dept IS TABLE OF upd%rowtype;
    cur_var dept;
    
    Type List Is table Of  varchar2(20);
    Name List:=  List('Shilpi','Sunil','Shreyas','Saral');
    
    BEGIN
    
    OPEN upd;
    LOOP
         FETCH upd BULK COLLECT INTO cur_var;
    --    EXIT WHEN upd%NOTFOUND;
    
         FORALL i IN cur_var.FIRST..cur_var.LAST
      
         UPDATE supplier_16
    **  SET Contact_name= name(i);  ***
         
         COMMIT;
    
    END LOOP;
    CLOSE upd;
    
    END;
    On the "BOLD" line, I don't know how I should move the values of the collection of name I said without which are set all the values in the table supplier_16 = 'Saral.

    Help, please.

    Aashish S. wrote:
    Thank you very much...

    Yes, I slide collections and was trying to reach somwthing on similar lines to which you provided the code example...

    My essay is equipped to take a collection: initialized with values of say 3-4...

    Take other tables... A column... and update the column in the table (not PK, FK anything) using the values of the initialized collection...

    However, I am stuck between the two on how the UPDATE clause should be...

    OK, if it's just because you want to practice with collections, you might do something like this...

    SQL> set serverout on
    SQL> create table supplier_16 as
      2  select 'Frederick' as contact_name from dual union all
      3  select 'Robert' from dual union all
      4  select 'Jeremy' from dual union all
      5  select 'Simon' from dual
      6  /
    
    Table created.
    
    SQL> create or replace procedure test_coll is
      2    CURSOR upd IS
      3      SELECT CONTACT_NAME
      4      FROM Supplier_16
      5      FOR UPDATE;
      6    Type List Is table Of  varchar2(20);
      7    Name List := List('Shilpi','Sunil','Shreyas','Saral');
      8    v_contact_name varchar2(30);
      9    v_idx          number := 1;
     10  BEGIN
     11    OPEN upd;
     12    LOOP
     13       FETCH upd INTO v_contact_name;
     14       EXIT WHEN upd%NOTFOUND;
     15       UPDATE supplier_16
     16       SET    contact_name = name(v_idx)
     17       WHERE CURRENT OF upd;
     18       DBMS_OUTPUT.PUT_LINE(v_contact_name||' update to '||name(v_idx));
     19       v_idx := v_idx + 1;
     20    END LOOP;
     21    CLOSE upd;
     22    COMMIT;
     23  END;
     24  /
    
    Procedure created.
    
    SQL> exec test_coll;
    Frederick update to Shilpi
    Robert update to Sunil
    Jeremy update to Shreyas
    Simon update to Saral
    
    PL/SQL procedure successfully completed.
    
    SQL> select * from supplier_16;
    
    CONTACT_N
    ---------
    Shilpi
    Sunil
    Shreyas
    Saral
    

    Of course, there is treatment rank by rank and is not best for performance, but it allows you to access your collection that you created names.

  • How to upgrade a table which contains 100,000 lines?

    Hi all!
    I see that I was wrong with column form (GRAG table), namely Gtype: 3003

    (MDSYS. SDO_GEOMETRY (3003,50632625, 'null', MDSYS. SDO_ELEM_INFO_ARRAY (1,5,1,1,2,1), MDSYS. SDO_ORDINATE_ARRAY(276.2339,-179.7433,0,276.2498,-179.7361, 0))

    And I need to update the Gtype value: 3003 to 3002.
    My problem is that I don't know how to implement because the table GRAG has 30000 rows. I can't update the each line manually.

    Do you have any advice?

    As much as I KNOW oracle11g can simply update SDO_GEOMETRY.

    This means creating new SDO_GEOMETRY with old values.

    try to change this option (I wrote once to circumvent the cannot not change the SDO_GEOMETRY problem):

    --------------------------------------------------------
    -geometry of the clones but with different values
    -We can "change" the SRID
    -Note: oracle 11g cannot change the geometries
    --------------------------------------------------------
    function alter_geometry (p_geo sdo_geometry, p_srid number default null)
    sdo_geometry is back
    v_result sdo_geometry;
    number of v_srid;
    Start
    If p_srid is null then
    v_srid: = p_geo. SDO_SRID;
    on the other
    v_srid: = p_srid;
    end if;
    v_result: = sdo_geometry (p_geo. SDO_GTYPE,
    v_srid,
    p_geo. SDO_POINT_TYPE,
    p_geo. ANSDO_ELEM_INFO,
    p_geo. SDO_ORDINATES);
    Return v_result;
    end alter_geometry;

    --

    -and then do an update as
    -before test with a table to create in select
    Update crack c set c.shape = alter_geometry (shape,...)

  • How to upgrade a table after each iteration?

    Hello

    I have a vi which works fine but the problem is that it updates all the data once the vi stops running. I want something as soon as (for outside for loop) 1 iteration it performs updates the table in front of the Panel, then 2nd iteration, it updates again and so on. Can anyone help me please with this.

    Thank you

    In fact, in your case, there are a simpler way to do it... If we talk about the pink channel on the first loop indicator.

    Just move the table from outside the loop inside the loop indicator.

  • How to upgrade a table which includes nearly 1 Million Records

    Hello

    Take the base for our Referenece emp table and allows to assume that it contains about 60000 Records and all the deptno in this table are out of 10. Please allow an update statement that would update the deptno column in the table EMP ((according to) order by EMPNO) in each increment of 1 120 reviews. (DeptNo to be incremented by 1, 10, 11, 12, etc.).

    First 120 deptno records should be 10,
    Then 120 deptno records should be 11 and so on.
    .
    .
    .
    .
    .
    .
    For the last 120 deptno records should be updated with 500.

    Please notify.

    Kind regards

    OK, I did it on a more limited set, incrementing each 5 folders...

    SQL> ed
    Wrote file afiedt.buf
    
      1  update emp2 set deptno = (select newdeptno
      2                            from (select empno, 10+floor((row_number() over (order by empno)-1)/5) as newdeptno
      3                                  from emp2
      4                                 ) e2
      5                            where e2.empno = emp2.empno
      6*                          )
    SQL> /
    
    14 rows updated.
    
    SQL> select * from emp2;
    
         EMPNO ENAME      JOB              MGR HIREDATE                    SAL       COMM     DEPTNO
    ---------- ---------- --------- ---------- -------------------- ---------- ---------- ----------
          7369 SMITH      CLERK           7902 17-DEC-1980 00:00:00        800                    10
          7499 ALLEN      SALESMAN        7698 20-FEB-1981 00:00:00       1600        300         10
          7521 WARD       SALESMAN        7698 22-FEB-1981 00:00:00       1250        500         10
          7566 JONES      MANAGER         7839 02-APR-1981 00:00:00       2975                    10
          7654 MARTIN     SALESMAN        7698 28-SEP-1981 00:00:00       1250       1400         10
          7698 BLAKE      MANAGER         7839 01-MAY-1981 00:00:00       2850                    11
          7782 CLARK      MANAGER         7839 09-JUN-1981 00:00:00       2450                    11
          7788 SCOTT      ANALYST         7566 19-APR-1987 00:00:00       3000                    11
          7839 KING       PRESIDENT            17-NOV-1981 00:00:00       5000                    11
          7844 TURNER     SALESMAN        7698 08-SEP-1981 00:00:00       1500          0         11
          7876 ADAMS      CLERK           7788 23-MAY-1987 00:00:00       1100                    12
          7900 JAMES      CLERK           7698 03-DEC-1981 00:00:00        950                    12
          7902 FORD       ANALYST         7566 03-DEC-1981 00:00:00       3000                    12
          7934 MILLER     CLERK           7782 23-JAN-1982 00:00:00       1300                    12
    
    14 rows selected.
    

    but the principle would be the same.

  • How can I format a table within a forum post?

    Hey all, sorry if this is a stupid question or in the wrong place, but how are we supposed to format the tables within a post on the forum so that its readable by members of the forum? I use the code tags to format the SQL itself, but I can't get the result to a readable table format. If I use the tags to code around the data itself all the data in the column is aligned is a seemingly random way. I've seen really well formatted output on this forum so I'm obviously missing something and I hope I don't have to manually insert spaces into the world and keep control of the Preview tab to ensure that it is good. I just want my messages to be readable and not confusing. I searched the FAQ and other forums and can't find anything that helps me...

    Thanks in advance,
    John

    user703358 wrote:
    Thank you - I use SQL Developer and then copy from excel so I'm probably get a bunch of weird characters?

    Use F5 (run the Script) instead of F9 (run the statement). That would give you a neat and pre-formatted result defined in the output of the Script window.

  • How to upgrade a shift with two independent loops while register?

    Hello everyone, I have a panel with two clusters with indicators control... a left and a right. I have messages from serial port, and I'm currently updating the left and the right within their own while loops. I have a single variable, which must be updated based on updates on both sides. Basically, I need follow the last selection update on each side... If I had 1, 2 and 4 on the left side and 3 on the right side... I would need to follow 4 was the latest updated the register shift variable for uses more in my vi. Can someone give me an idea how to upgrade this a variable based on two while loops that run independently in the same sequence context? Thanks in advance, cayenne

    Thank you both of you for the suggestion.

    I managed to find a way to get the values that I needed without EI... but I read the link to the Nugget in their subject, and I can't expect a use for them in the future.

    Cayenne

  • How to upgrade to windows 7 and keep all files

    Hello

    I have a Toshiba Windows Vista laptop and I want to upgrade to Windows 7. I have two user accounts and I was just wondering that during the upgrade can I still keep the files that I have on the accounts or they will be deleted? Thank you.
    -Maryse

    I have a Toshiba Windows Vista laptop and I want to upgrade to Windows 7. I have two user accounts and I was just wondering that during the upgrade can I still keep the files that I have on the accounts or they will be deleted? Thank you.

    If you make a way to update your programs and files will be kept. A custom installation will remove your programs and files.

    If you are running Windows Vista , in some cases you can proceed directly to Windows 7, and in other cases, you must perform a custom installation. The following table shows what editions of Windows Vista can be upgraded to Windows 7.

    Windows Vista Home Basic

    Windows 7 Home Premium, Windows 7 Ultimate

    Windows Vista Edition Home Premium

    Windows 7 Home Premium, Windows 7 Ultimate

    Windows Vista Business

    Windows 7 Professional, Windows 7 Ultimate

    Windows Vista Ultimate Edition

    Windows 7 Ultimate

    For more information, see upgrading from Windows Vista to Windows 7 . (http://windows.microsoft.com/upgrade-windows-vista )
    You can't go from 32 bit to 64 bit, a clean install is required. If you have any questions about the upgrade from 32 bit to 64 bit or vice versa, please see this FAQ: http://windows.microsoft.com/en-us/windows7/32-bit-and-64-bit-Windows-frequently-asked-questions
    If you have any general questions about reinstalling Windows , please see this site:
    http://Windows.Microsoft.com/en-us/Windows7/installing-and-reinstalling-Windows

    Installation - 'upgrade' means what?
    Upgrade means that you can install Windows 7 simply by inserting the Windows 7 upgrade software in the DVD drive of your PC and follow the instructions on the screen. While you are not required to backup and reinstall your files, or reinstall your programs, it is a very good idea to back up your files and settings before you start any upgrade to the software. Get more information on the software updates and best practices .

    Installation - what does "Custom (Clean)" Mean?
    A custom (clean) installation clears the contents of the hard drive of your PC. Your files, settings, and programs will not be transferred to Windows 7. This means that to install Windows 7, you must:

    • Back up any files and settings you want to keep

    • Install Windows 7

    • Reinstall all your files

    • Reinstall all the programs you want to use.

    These four steps take time, skills, techniques and Windows Easy Transfer can help. However, if you are not comfortable with this process, please consider having the installation carried out by a local service provider.

  • How to create a table of contents of several levels?

    How to create a table of contents of several levels, or at least a TOC of two levels, so that when you click on the sign '+' or something similar to the first level, the second level will increase?

    Select the item/s from the list Table of contents, and then use the arrows that will apear at the bottom of the skin Editor to move them to the right.  This will cause a new point TOC to appear as a cap for all items indented beneath it.

    Be aware that during the execution by clicking on this article of the topic does not operate the game to slide under him.  There is no that expand the group to show slides of the child. You will then need to click on the first slide of the child in the group to trigger playback.  Personally I don't like the way it works, but that's how it is.  Register a feature (like me) request if you want that it works differently in a future version of Captivate.

  • How to create a table with lines in a line?

    Hello

    I am trying to create a table that looks like this: https://Acrobat.com/#d=XyI3rlSWMWYXQixzpRSrXA but I can't understand.

    Please can someone tell how should I go about this?

    Thanks for the help.

    Hello

    We see you the nested tables, you must create a table within a table. For this first you must merge the lines and insert a table with the number of rows requested. You can find the example created for you below and let me know in case of any problems

    https://SendNow.Acrobat.com/m/g.ashx?i=rO1m-dIDzRs2FibTHDSiww&x=yrC * o4IZIVfpKgqOTbX8OQ

    Thank you

  • How to upgrade the ArrayCollection collection when running?

    Am facing a problem with the arraycollection collection...
    will have an arraycolelction like that...
    var dpHierarchy:ArrayCollection = new ArrayCollection([)
    {Region: "Application1"},
    {Region: "Demand2"},
    {Region: "Demand3"},
    [{Region: "APPROVISIONNEMENTS4"}]

    now what I'm looking for is... How to upgrade this arraycollection collection during execution using actions script?
    I need to update this collection table something like this...

    var dpHierarchy:ArrayCollection = new ArrayCollection([)
    {Region: "Application1", year: '2008'},
    {Region: "demand2', year: '2008'},
    {Region: "Demand3', year: '2008'},
    [{Region: "APPROVISIONNEMENTS4", year: '2008'}]

    How to add the year field in to existing collection arraycollection as shown in the example...

    Thanks in advance
    Pratap

    Hey get...

    I have to just give

    dpHierarchy [0] ['year'] = '2008 '.

    :-)

  • IB: how to upgrade a serial number which performs hardware inventory operations?

    Dear friends

    first of all thank you for your time and the valid solutions

    Install the base: how to upgrade a serial number which performs hardware inventory operations


    description of the problem:

    Install the base > Quick search

    Here's the Installbase folder, when I fast search query

    REC # Item serial number State of the Instance element
    1 3000000 300-7000-01-1000XXX-0538JQ0003 of return for Exchange Adv
    2 8000000 300-7000-01-1000XXX-0538JQ0003-return for Exchange Adv
    3 300 - 7000-01 5000000 1000XXX-0538JQ0003-A return for Exchange Adv


    looking over the data, first recordings and the third are legitimate serial numbers (correct to the customer's specifications), second record is not legitimate because it has a dashboard as a suffix, we found there are several illegitimate serial numbers exist, must be updated with the right of the serial numbers which I analyzed in great after having pulled data from mtl_material_transactions oe_order_lines_all, mtl_serial_numbers, mtl_system_items_b
    Basically, these are all RMA

    I need to update the second album under the name 1094SUZ-0538JQ0003-B by the guidelines, updating, I need to keep all the existing contracts, warranty, what ever material operations, there need to be same.

    We have a package to update serial numbers using the IB (csi_Item_Instance_Pub.update_item_instance) API, but it updates only the records which has no current serial number of this instance, if there is a serial number already exists, it does not work.

    user to define the error msg ' serial number 1094SUZ-0538JQ0003-a inventory of significant transactions. " This serial number cannot be used to update an existing Instance of point", but I need to update anyway! or am I missing something here, please advice me

    post below resembles similar question, talking about hard update, I have no idea, by the practice that the serial number update will have same operations, contracts and dates... attached to it as previous serial number

    IB UPDATE_ITEM_INSTANCE ERROR - does not allow ACTIVE_START_DATE change


    would be great if you guys help me, really appreciated!


    Unfortunately, I could not find any solution in metalink for the existing serial number update


    Code to update the serial number using the IB API
    x_msg_count: = 0;
    x_msg_data: = ";
    p_instance_rec.INSTANCE_ID: = rec.child_instance_id;
    p_instance_rec.Serial_number: = rec.child_serial_number;
    p_instance_rec.object_version_number: = rec.child_object_number;
    p_txn_rec.transaction_id: = Fnd_Api.g_miss_num;
    p_txn_rec.transaction_date: = SYSDATE;
    p_txn_rec.source_transaction_date: = SYSDATE;
    p_txn_rec.transaction_type_id: = 1;

    csi_Item_Instance_Pub.update_item_instance
    (
    p_api_version = > 1.0,
    p_commit = > Fnd_Api.g_false,
    p_init_msg_list = > Fnd_Api.g_false,
    p_validation_level = > 1,
    p_instance_rec = > p_instance_rec,
    p_ext_attrib_values_tbl = > p_ext_attrib_values_tbl,
    p_party_tbl = > p_party_tbl,
    p_account_tbl = > p_account_tbl,
    p_pricing_attrib_tbl = > p_pricing_attrib_tbl,
    p_org_assignments_tbl = > p_org_assignments_tbl,
    p_asset_assignment_tbl = > p_asset_assignment_tbl,
    p_txn_rec = > p_txn_rec,
    x_instance_id_lst = > x_instance_id_lst,
    x_return_status = > x_return_status,
    x_msg_count = > x_msg_count,
    x_msg_data = > x_msg_data
    );


    Thank you
    Suri

    Suri
    This used. Is perhaps not perfect, but you should get there. Only if the table is saved (all tables seeded should be registered) it will work.

    Select a.table_name, distinct b.column_name from fnd_tables a, fnd_columns b
    where a.table_id = b.table_id
    and upper (b.column_name) like ' % SERIAL.

    Also it is a very old, but if you need history for this change adds logic to insert story as well...

    DECLARE
    l_return_err VARCHAR2 (80);

    PROCEDURE debug (p_message IN VARCHAR2)
    IS
    BEGIN
    dbms_output.put_line (SUBSTR (p_message, 1, 255));
    END debugging;
    BEGIN
    debug('======================================================================');
    debug ("switching of serial number XDT07406. to XDT07406');
    debug('======================================================================');

    UPDATE fa_additions_b
    Serial_number SET = "XDT07406."
    WHERE Serial_number = 'XDT07406.';
    debug (' number of rows in fa_additions_b :'|| update) SQL % number of lines);

    UPDATE fa_mass_additions
    Serial_number SET = "XDT07406."
    WHERE Serial_number = 'XDT07406.';
    debug (' number of rows in fa_mass_additions :'|| update) SQL % number of lines);

    UPDATE rcv_serial_transactions
    Serial_num who SET = "XDT07406."
    WHERE the serial_num which = "XDT07406.";
    debug (' number of rows in rcv_serial_transactions :'|| update) SQL % number of lines);

    UPDATE mtl_serial_numbers
    Serial_number SET = "XDT07406."
    WHERE Serial_number = 'XDT07406.';
    debug (' number of rows in mtl_serial_numbers :'|| update) SQL % number of lines);

    UPDATE mtl_unit_transactions
    Serial_number SET = "XDT07406."
    WHERE Serial_number = 'XDT07406.';
    debug (' number of rows in mtl_unit_transactions :'|| update) SQL % number of lines);

    UPDATE csi_item_instances_h
    SET new_serial_number = "XDT07406".
    WHERE new_serial_number = 'XDT07406.';
    debug (' number of rows in csi_item_instances_h :'|| update) SQL % number of lines);

    UPDATE csi_t_txn_line_details
    Serial_number SET = "XDT07406."
    WHERE Serial_number = 'XDT07406.';
    debug (' number of rows in csi_t_txn_line_details :'|| update) SQL % number of lines);

    UPDATE csi_item_instances
    Serial_number SET = "XDT07406."
    WHERE Serial_number = 'XDT07406.';
    debug (' number of rows in csi_item_instances :'|| update) SQL % number of lines);

    UPDATE wsh_delivery_details
    Serial_number SET = "XDT07406."
    WHERE Serial_number = 'XDT07406.';
    debug (' number of rows in wsh_delivery_details :'|| update) SQL % number of lines);

    debug('======================================================================');
    debug ("switching of serial number jct20591 to JCT20591'");
    debug('======================================================================');

    UPDATE fa_additions_b
    Serial_number SET = "JCT20591."
    WHERE Serial_number = "jct20591";
    debug (' number of rows in fa_additions_b :'|| update) SQL % number of lines);

    UPDATE fa_mass_additions
    Serial_number SET = "JCT20591."
    WHERE Serial_number = "jct20591";
    debug (' number of rows in fa_mass_additions :'|| update) SQL % number of lines);

    UPDATE rcv_serial_transactions
    Serial_num who SET = "JCT20591."
    WHERE the serial_num which = "jct20591";
    debug (' number of rows in rcv_serial_transactions :'|| update) SQL % number of lines);

    UPDATE mtl_serial_numbers
    Serial_number SET = "JCT20591."
    WHERE Serial_number = "jct20591";
    debug (' number of rows in mtl_serial_numbers :'|| update) SQL % number of lines);

    UPDATE mtl_unit_transactions
    Serial_number SET = "JCT20591."
    WHERE Serial_number = "jct20591";
    debug (' number of rows in mtl_unit_transactions :'|| update) SQL % number of lines);

    UPDATE csi_item_instances_h
    SET new_serial_number = "JCT20591".
    WHERE new_serial_number = 'jct20591 ';
    debug (' number of rows in csi_item_instances_h :'|| update) SQL % number of lines);

    UPDATE csi_t_txn_line_details
    Serial_number SET = "JCT20591."
    WHERE Serial_number = "jct20591";
    debug (' number of rows in csi_t_txn_line_details :'|| update) SQL % number of lines);

    UPDATE csi_item_instances
    Serial_number SET = "JCT20591."
    WHERE Serial_number = "jct20591";
    debug (' number of rows in csi_item_instances :'|| update) SQL % number of lines);

    COMMIT;
    EXCEPTION
    WHILE OTHERS
    THEN
    l_return_err: = "update in one of Scripture has this error :'|| substrb (sqlerrm, 1, 55);
    debug ("l_return_err value ='|") l_return_err);
    END;
    /

    Thank you
    Claire

  • How to upgrade to iOS 10

    How to upgrade to iOS 10 on Ipod touch?

    Check below link it's simple, you must have 1.2 GB of free space and only iPod touch 6th generation will support.

    Update to iOS 10 - official Apple Support

Maybe you are looking for