Delete from two tables at the same time

Hi,
Is there way to delete from many tables at the same time ?
delete from tbl1, tbl2;
Thank you

953402 wrote:
Hi,
Is there way to delete from many tables at the same time ?
delete from tbl1, tbl2;
Thank youNO
Consider to actually Read The Fine Manual below
http://docs.oracle.com/cd/E11882_01/server.112/e26088/toc.htm

Similar Messages

  • Updating two tables at the same time

    Please,
    Does someone have an idea on how to update two tables at the same times?
    Thanks a lot in advance

    I was thinking about a single session and single update command.
    That's why I thougth someone else could have a clue.
    Thank you

  • Data from two tables in the same row in XML transformation

    Hi,
        I am using XML transformation for generating excel file which is to besent as email attachment.
        Here  I want to display the data from two internal tables in the same row in the excel. .I am using   <tt:loop ref=".<table name>"> ...  </tt:loop> for looping through the table. Can I loop two table simultaneously ? In that case how will I specify the fields in each table . Some of the fields in two tables are of same name and type.
    Please help...
    Thanks,
    Jissa

    Hello Brian,
    Thank you for your answer. It is approach I will use, I think. However let me ask: Would it be possible to have a Version in this layout, too? I mean to see, which value comes from Version A and which comes from Version B? Something like this:
    Calendar Month Version Sales Amount
    2011.01  B  200
    2011.02  B  300
    2011.03  A  260
    2011.04  A  230
    2011.05  A  200
    A

  • [Bug] Writing to the same trace in Citadel from two Sources at the same time

    Howdy
    I am experiencing an issue and am looking to get some NI support:
    I have two distributed applications that can write to a Citadel database at the same time.
    And I am investigating the possibility of what would occur if both of them were writing to the same variable at the same time, with possibly the same timestamp data.
    I did this in the attached VI by using the same timestamps with a constant for the data (either #1 or #2).
    This generates an error, as expected, stating you cannot have two references open at the same time.
    The data file, dumped from Citadel, contains 1000pts with all data from only one of the arrays (in this case #2) and everything looks fine:
    However, what appears to be happening randomly tho, is that the same portion of code can also returns no error.
    When the data is dumped from Citadel this file contains 2001pts - 1000pts from each array and one separator (or break) point:
    You cannot write an older timestamp to Citadel without it throwing an error, but from further testing it seems you can write the same timestamp repeatably. So I am guessing what is happening above is race condition that is somehow allowing two references to be opened to Citadel which should throw an error but it does not and this is somehow allowing both sets of data to be written by both loops??
    The data, IMO, is now corrupted.
    Is being able to write to the same timestamp a desirable feature?
    Or is this a known issue or a bug?
    What about acquiring two references - bug?
    Is there a workaround to protect the data from multiple distributed-application writes?
    Cheers
    -JG
    Attached VI was coded and tested using LabVIEW 2009 SP1, DSC 9.0.1, MAX 4.6.2f1
    Certified LabVIEW Architect * LabVIEW Champion
    Attachments:
    dual_databaseWrite.vi ‏21 KB

    Ben S wrote:
    The race condition of opening the refererence in two places at once should still apply to two different VIs running at the sametime.
    Will a CAR be lodged for this?
    Ben S wrote:
    If you open up the code and save it as a .vit, you don't get any missing VIs. Only when you change the extension without the aid of LabVIEW.
    No VI should have missing members by simply renaming its extension outside of LabVIEW???
    I think there is an issue with the VI.
    Can you replicate the following and verify what I am seeing?
    Attached is a Project with Main VI (contains a call to the Open Trace.vi polymorphic only), a Class and a Build Spec
    If you Build the spec with the Main VI outside of the Class it works
    If you place the VI in the Class, save then Build, the Spec fails with the error:
    Visit the Request Support page at ni.com/ask to learn more about resolving this problem. Use the following information as a reference:
    Error 1003 occurred at AB_Application.lvclasspen_Top_Level_VIs.vi -> AB_Build.lvclass:Build.vi -> AB_Application.lvclass:Build.vi -> AB_EXE.lvclass:Build.vi -> AB_Engine_Build.vi -> AB_Build_Invoke.vi -> AB_Build_Invoke.vi.ProxyCaller
    Possible reason(s):
    LabVIEW:  The VI is not executable. Most likely the VI is broken or one of its subVIs cannot be located. Select File>>Open to open the VI and then verify that you are able to run it.
    Visit the Request Support page at ni.com/ask to learn more about resolving this problem. Use the following information as a reference:
    Error 1003 occurred at AB_Application.lvclass:Open_Top_Level_VIs.vi -> AB_Build.lvclass:Build.vi -> AB_Application.lvclass:Build.vi -> AB_EXE.lvclass:Build.vi -> AB_Engine_Build.vi -> AB_Build_Invoke.vi -> AB_Build_Invoke.vi.ProxyCaller
    Possible reason(s):
    LabVIEW: The VI is not executable. Most likely the VI is broken or one of its subVIs cannot be located. Select File>>Open to open the VI and then verify that you are able to run it.
    Next place a disabled structure around the Polymorphic VI (as Class Member or not, it doesn't matter)
    Save the VI
    Close the VI
    Open the VI - the Open Trace.vi polymorphic is "missing"
    Cheers
    -JG
    Code in LV2009
    Certified LabVIEW Architect * LabVIEW Champion
    Attachments:
    DSC.zip ‏341 KB

  • How to read from two boards at the same time

    I have two NI DAQ Boards, a PCI 6034E and a PCI 6025E I want to make one a master and one a slave and read from both at the same time. Do they need jumpers between them
    from one board to the other or does the motherboard bus take care of that? I can find software to handle this but I can't find anything on the way the hardware should be configured, is there a cable I need between them?

    Hi,
    We have a couple of great tutorials on this:
    http://zone.ni.com/devzone/conceptd.nsf/webmain/6DC991028566309886256F990080A720
    http://zone.ni.com/devzone/conceptd.nsf/webmain/2638A8DA4E4CFD1F86256D250070C093?opendocument
    -Sal

  • Changing the same column in two tables at the same time

    Hi,
    Oracle 10g2
    I have 2 tables:
    1. tab1 : Stores people info
    2. tab2 : Stores people insurance info
    Both have an address field.
    What I need to do is when tab1.address is updated I want the tab2.address to update automatically and
    when tab2.address is updated I want tab1.address to update.
    Is there a way to do this using triggers without having these triggers mutate?
    Thanks,
    Oleg
    Edited by: user635344 on Oct 8, 2009 11:04 AM

    Hi, Oleg,
    Centinul, Toon, Hoek and Peter are right. (It would be unusual if any one of them were wrong.)
    The addresses really ought to be in one table.
    If you really must have them in two (or more) tables, then don't INSERT or UPDATE addresses direectly into the tables; use a separate stored procedure, not a trigger.
    If you really must use a trigger (and this means a trigger on each table), then before each trigger updates the other table, check a flag to see if the current table is being updated because of DML on the other, and, if so, do nothing. If the current table is not being updated because of DML on the other, then set the flag before doing the update.
    In the example below, I used a package variable as the flag. You could also use a SYS_CONTEXT or a Global Temporary Table.
    CREATE TABLE tab1
    (      id    NUMBER
    ,      addr  VARCHAR2 (25)
    DROP TABLE     tab2;
    CREATE TABLE tab2
    (      id    NUMBER
    ,      addr  VARCHAR2 (25)
    CREATE OR REPLACE PACKAGE pk_x
    AS
        -- This package contains no functions or procedures, only 1 variable:
        table_of_origin     varchar2 (30);
    END     pk_x;
    CREATE OR REPLACE TRIGGER     tab1_aiu
    AFTER INSERT OR UPDATE OF addr on tab1
    FOR EACH ROW
    BEGIN
         IF  pk_x.table_of_origin  IS NULL
         THEN
              pk_x.table_of_origin := 'TAB1';
              UPDATE  tab2
              SET     addr     = :NEW.addr
              WHERE     id     = :NEW.id;
              pk_x.table_of_origin := NULL;
         END IF;
    END     tab1_aiu;
    CREATE OR REPLACE TRIGGER     tab2_aiu
    AFTER INSERT OR UPDATE OF addr on tab2
    FOR EACH ROW
    BEGIN
         IF  pk_x.table_of_origin  IS NULL
         THEN
              pk_x.table_of_origin := 'TAB2';
              UPDATE  tab1
              SET     addr     = :NEW.addr
              WHERE     id     = :NEW.id;
              pk_x.table_of_origin := NULL;
         END IF;
    END     tab1_aiu;
    /I made this example as simple as possible. Production code would be a lot more complicated (e.g., checking to see if id was changed).
    I tested this using the DML statements below.
    The contents of both tables is shown after each statement.
    INSERT INTO tab1 (id, addr) VALUES (1, '1 First St.');
          ID_1 ADDR_1                          ID_2 ADDR_2
             1 1 First St.
    INSERT INTO tab2 (id, addr) VALUES (1, 'Forstagatan 1');
          ID_1 ADDR_1                          ID_2 ADDR_2
             1 Forstagatan 1                      1 Forstagatan 1
    UPDATE        tab1
    SET        addr     = 'Primo Place'
    WHERE        id     = 1;
          ID_1 ADDR_1                          ID_2 ADDR_2
             1 Primo Place                        1 Primo PlaceThe query that displayed the contents is:
    SELECT  tab1.id           AS id_1
    ,     tab1.addr     AS addr_1
    ,     tab2.id           AS id_2
    ,     tab2.addr     AS addr_2
    FROM                tab1
    FULL OUTER JOIN           tab2     ON     tab1.id     = tab2.id
    ORDER BY   NVL (tab1.id, tab2.id);

  • How can I delete photos from my iPhone 4S without deleting from Mac iPhoto at the same time?

    My iPhone has more than 12gB of photos &amp; video - some 1200 of them. I have transferred them all to iPhoto on my MacBook Pro. Now I want to delete about 75% of the photos on my phone while I keep the rest safely on my Mac. When I go to delete the photos a warning comes up to say that I am about to delete my photos from all locations but I cannot afford to lose my memories.

    You can't because the actual photos are in the camera roll.  The albums only contain links to these photos, not duplicate photos.

  • Retrieving data from different tables in the same time crash

    Hi
    this is probably the wrong way to do it, but this is how I did:
    - I wanted a screen with 3 datagrids components retrieving data from 3 different tables.
    - I could make it work while enabling 1 or 2 of them.  When the 3 are enabled, I get this error:
    btw its a huge msg, I will trim it:
    ArgumentError: Can't find ManagedQuery or ManagedOperation named: getItems_paged     at mx.data::RPCDataServiceAdapter/executeQuery()[C:\depot\DataServices\branches\lcds_modeler 101\frameworks\projects\data\src\mx\data\RPCDataServiceAdapter.as:325]     at mx.data::RPCDataServiceAdapter/processDataMessage()[C:\depot\DataServices\branches\lcds_m odeler101\frameworks\projects\data\src\mx\data\RPCDataServiceAdapter.as:920]     at RPCDataServiceRequest/invoke()[C:\depot\DataServices\branches\lcds_modeler101\frameworks\ projects\data\src\mx\data\RPCDataServiceAdapter.as:1668]     at mx.data::DataStore/http://www.adobe.com/2006/flex/mx/internal::invoke()[C:\depot\DataServices\branches\lcds_m odeler101\frameworks\projects\data\src\mx\data\DataStore.as:3343] ...  it continues forever. 
    the getItems_paged is a auto generated function inside the php class flex generates to handle the tables.
    Each of the datagrid is a custom component. I made so to avoid keeping a bunch of code lines in the main 'page'.
    Any suggestion to make it work smoothly?
    Thanks in advance,
    btp~

    Hi
    this is probably the wrong way to do it, but this is how I did:
    - I wanted a screen with 3 datagrids components retrieving data from 3 different tables.
    - I could make it work while enabling 1 or 2 of them.  When the 3 are enabled, I get this error:
    btw its a huge msg, I will trim it:
    ArgumentError: Can't find ManagedQuery or ManagedOperation named: getItems_paged     at mx.data::RPCDataServiceAdapter/executeQuery()[C:\depot\DataServices\branches\lcds_modeler 101\frameworks\projects\data\src\mx\data\RPCDataServiceAdapter.as:325]     at mx.data::RPCDataServiceAdapter/processDataMessage()[C:\depot\DataServices\branches\lcds_m odeler101\frameworks\projects\data\src\mx\data\RPCDataServiceAdapter.as:920]     at RPCDataServiceRequest/invoke()[C:\depot\DataServices\branches\lcds_modeler101\frameworks\ projects\data\src\mx\data\RPCDataServiceAdapter.as:1668]     at mx.data::DataStore/http://www.adobe.com/2006/flex/mx/internal::invoke()[C:\depot\DataServices\branches\lcds_m odeler101\frameworks\projects\data\src\mx\data\DataStore.as:3343] ...  it continues forever. 
    the getItems_paged is a auto generated function inside the php class flex generates to handle the tables.
    Each of the datagrid is a custom component. I made so to avoid keeping a bunch of code lines in the main 'page'.
    Any suggestion to make it work smoothly?
    Thanks in advance,
    btp~

  • How to update two tables at the same time using jdbc

    Plz will anybody tell me what is the code or query in jdbc by which you insert entry in one table and simultaneously it goes in another table?
    Thanks in advance

    You might be
    able to design a trigger to do what you're talking
    about, but that would be a database thing, not a java
    thingAnother option would be an updatable view (google for usage), but it has limitations and should be used with caution. And yes, its a database thinggy and not java.
    cheers,
    ram.

  • Singletons running on two servers at the same time

    Hello,
              we faced one interesting situation with our application, running on clustered BEA Weblogic 9.2. We implemented some Singletons (ie. Singleton Service in a Weblogic cluster) and they are running fine. Most of the time.
              Common scenarios: cluster is started -> the singletons run on one server; the server is brought down -> the singletons are started on the second server.
              However, we had recently two situations where the Singletons started on both servers! Here they are:
              1) We use Database Migration Basis and we have a dedicated table for Weblogic to capture current state of the singletons. Due to the fact that database (Oracle RAC) was partially available one of the Managed Server could not get the lease and probably assumed that no singleton is running, therefore started the singletons locally.
              2) Network outage: we had several minutes where none of our servers could communicate between them (neither between SASU MS nor with the database). Consequence: each MS decided to start the singleton locally (after some time, which I assume is the waiting time). Once the network came back the servers could communicate again but the duplicate singletons are not deactivate, so they are running in parallel.
              Anyone experienced the same or similar issues? How to prevent the above? Is the Consensus Migration Basis a better choice? (I think yes for #1 but not for situation #2).
              Any helpful answer is appreciated.
              Thank you, best regards,
              Remus.

    In general its not a good idea.  Running PSConfig will try to establish a lock on the configuration database.  Doing that from two servers at the same time may cause the update to fail.
    Paul Stork SharePoint Server MVP
    Principal Architect: Blue Chip Consulting Group
    Blog: http://dontpapanic.com/blog
    Twitter: Follow @pstork
    Please remember to mark your question as "answered" if this solves your problem.

  • How to insert into two differents tables at the same time

    Hi
    I'm newer using JDev, (version 3.1.1.2 cause the OAS seems to support just the JSP 1.0)
    and I want to insert into two differents tables at the same time using one view.
    How can I do that ?
    TIA
    Edgar

    Oracle 8i supports 'INSTEAD OF' triggers on object views so you could use a process similar to the following:
    1. Create an object view that joins your two tables. 'CREATE OR REPLACE VIEW test AS SELECT d.deptno, d.deptname, e.empname FROM DEPT d, EMP E'.
    2. Create an INSTEAD OF trigger on the view.
    3. Put code in the trigger that looks at the :NEW values being processed and determines which columns should be used to INSERT or UPDATE for each table. Crude pseudo-code might be:
    IF :NEW.deptno NOT IN (SELECT deptno FROM DEPT) THEN
    INSERT INTO dept VALUES(:NEW.deptno, :NEW.deptname);
    INSERT INTO emp VALUES (:NEW.deptno, :NEW.empname);
    ELSE
    IF :NEW.deptname IS NOT NULL THEN
    UPDATE dept SET deptname = :NEW.deptname
    WHERE deptno = :NEW.deptno;
    END IF;
    IF :NEW.empname IS NOT NULL THEN
    UPDATE emp SET empname = :NEW.empname
    WHERE deptno = :NEW.deptno;
    Try something along those lines.
    null

  • I have installed itunes 11.0.2.26. When I delete a file or podcast I am not being prompted to delete the file from its folder at the same time.

    I have installed itunes 11.0.2.26. When I delete a file or podcast I am not being prompted to delete the file from its folder at the same time. How do I restore this facility? I am running a 64bit Windows 7 OS

    Is the media files in question in the iTunes library or elsewhere on the computer?

  • Stream music to two airports at the same time from my iPad2?

    I found out from the apple-website that its possible to stream music to two(or more) of the new updated Airports from a computer at the same time .. can i do it from my iPad2 also?  i want to build zones in my home and be able to use them one by one, or play music in several of them together at the same time.
    I,m currently using the Spotify-app from my iPad2 or iPhone3GS to my existing(old one) Airport Express, and need to know if i can bye more Airports?
    Thanks in advance
    /Jonas from Sweden.

    I found out from the apple-website that its possible to stream music to two(or more) of the new updated Airports from a computer at the same time .. can i do it from my iPad2 also?
    Sorry, but no. This option is not supported on iOS devices.

  • Delete from two tables in one statement

    Hi,
    Is there a way to delete from two tables in one statement?
    Actually I have two tables:
    1. Base table (id, name, age)
    2. Person table (id, city, street)
    The id in both tables is identical.
    I would like to delete using something like a join:
    Delete from base, person where id=2;
    Thanks
    dyahav

    Hi,
    If you want to delete records both at a time them your table must use ON DELETE CASCADE. See the below example.
    CREATE TABLE supplier
    ( supplier_id numeric(10) not null,
    supplier_name varchar2(50) not null,
    contact_name varchar2(50),
    CONSTRAINT supplier_pk PRIMARY KEY (supplier_id)
    CREATE TABLE products
    ( product_id numeric(10) not null,
    supplier_id numeric(10) not null,
    CONSTRAINT fk_supplier
    FOREIGN KEY (supplier_id)
    REFERENCES supplier(supplier_id)
    ON DELETE CASCADE
    In this example, we've created a primary key on the supplier table called supplier_pk. It consists of only one field - the supplier_id field. Then we've created a foreign key called fk_supplier on the products table that references the supplier table based on the supplier_id field.
    Because of the cascade delete, when a record in the supplier table is deleted, all records in the products table will also be deleted that have the same supplier_id value.
    Thank you.

  • How to open and save pictures from 1 folder at the same time?

    Is there a way to open and save pictures from 1 folder at the same time?
    I'm creating a vi that resizes the picture but I want to do it with 1 folder at a time... Is this possible?
    greetings!

    Hi Kway,
    Here you are. I wrote a file a customer times ago & It did what you want!
    Just see the attachements and keep me inform.
    Regards,
    Julien Roland - District Sales Manager
    NI Belgium - Technical Support
    Don't forget to rate a good answer
    Attachments:
    Test existing Files.vi ‏23 KB
    Delete files from array of files (SubVI).vi ‏16 KB

Maybe you are looking for

  • To add a new condition type in Sales order programatically

    Hello, I want to add a condition type (ZXXX) with an amount in sales order programatically. I want to add the condition type in the item. I am able to add the price (amount) and condition type (ZXXX) manually in the sales order through t code crmd_or

  • I can't playback a video I purchased on itunes

    I purchased Fleetwood Mac The Dance on Itunes.  I was able to play it back once on my Ipod Touch but now I am unable to do so.  It is clearly marked as an item for synching on Itunes and when I search for it on my Ipod Touch and play the screen just

  • How to retrieve the type of iView?

    Hi Experts, I would have a simple question, I have an ivew on my portal, but I am not able to find the type of this iview. I need the name of the iview template like WebDynpro, Transaction, BW, URL, Query ect. Thanks, Levente

  • Illustrator default RGB black is gray

    Group, I just got CS4 and I am working in RGB and when I hit D to set default colors the black is not black... It is a dark grey.  Basically the same if you take something that is black in a CMYK document and paste it into an RGB document.  The black

  • I am finding  the No. of threads in use through the RWB

    Hi, WE have 2 server nodes,we want to compare the load distribution. I am finding  the No. of threads in use through the RWB -> Component Monitoring -> engine status -> Queues ... to find thread count (in use). I could see the thread count as 0.I eve