No rows inserted by mappping.

Hi all,
I have build a mapping that generate the following type of code :
INSERT
INTO "IIA_DATA"."FAITS_EX_POST"@"DIIAV3@EMP_IIA_DATA"
"NOMBRE" ,
"DIM_EX_POST" ,
"DIM_SERVICE_EX_POST",
"DIM_TEMPS_EX_POST"
(SELECT to_number( "V_FAITS"."R_VALEUR" )
/* EXPRESSION.OUTGRP1.NOMBRE */
"NOMBRE" ,
"DIM_EX_POST"."DIMENSION_KEY" "DIMENSION_KEY" ,
"DIM_SERVICE"."DIMENSION_KEY" "DIMENSION_KEY_2",
"DIM_TEMPS"."DIMENSION_KEY" "DIMENSION_KEY_1"
FROM "V_FAITS" "V_FAITS" ,
"V_DIMENSIONS_FAITS" "V_DIMENSIONS_FAITS" ,
"IIA_DATA"."DIM_TEMPS"@"DIIAV3@EMP_IIA_DATA" "DIM_TEMPS" ,
"IIA_DATA"."DIM_SERVICE"@"DIIAV3@EMP_IIA_DATA" "DIM_SERVICE",
"IIA_DATA"."DIM_EX_POST"@"DIIAV3@EMP_IIA_DATA" "DIM_EX_POST"
WHERE ( "V_FAITS"."I_ID" BETWEEN 1 AND 142 )
AND ( "V_FAITS"."R_ID" = "V_DIMENSIONS_FAITS"."R_ID" )
AND ( "V_FAITS"."MONTH_CAL_CODE_ID" = "DIM_TEMPS"."CALENDAR_MONTH_CAL_MONTH_CODE" )
AND ( "V_FAITS"."R_VALEUR_AXE" = "DIM_SERVICE"."SERVICE_ACS" )
AND ( (to_number("DIM_EX_POST"."COMPTABILISATION_ID_FONC" )
/* EXPRESSION1.OUTGRP1.COMPTABILISATION_ID_FONC */
) = "V_DIMENSIONS_FAITS"."NE_ID" )
Unfortunately, no rows get inserted in my fact table.
Any idea ?
Stephan
Edited by: Steff972_the_one on 9 mars 2009 10:03

Insert into ....
INSERT
   INTO "IIA_DATA"."FAITS_EX_POST"@"DIIAV3@EMP_IIA_DATA"
    "NOMBRE"             ,
    "DIM_EX_POST"        ,
    "DIM_SERVICE_EX_POST",
    "DIM_TEMPS_EX_POST"
  (SELECT to_number( "V_FAITS"."R_VALEUR" ) "NOMBRE"                                       ,
      "DIM_EX_POST"."DIMENSION_KEY" "DIMENSION_KEY"  ,
      "DIM_SERVICE"."DIMENSION_KEY" "DIMENSION_KEY_2",
      "DIM_TEMPS"."DIMENSION_KEY" "DIMENSION_KEY_1"
       FROM "V_FAITS" "V_FAITS"                                   ,
      "V_DIMENSIONS_FAITS" "V_DIMENSIONS_FAITS"                   ,
      "IIA_DATA"."DIM_TEMPS"@"DIIAV3@EMP_IIA_DATA" "DIM_TEMPS"    ,
      "IIA_DATA"."DIM_SERVICE"@"DIIAV3@EMP_IIA_DATA" "DIM_SERVICE",
      "IIA_DATA"."DIM_EX_POST"@"DIIAV3@EMP_IIA_DATA" "DIM_EX_POST"
      WHERE ( "V_FAITS"."I_ID" BETWEEN 1 AND 142 )
    AND ( "V_FAITS"."R_ID"              = "V_DIMENSIONS_FAITS"."R_ID" )
    AND ( "V_FAITS"."MONTH_CAL_CODE_ID" = "DIM_TEMPS"."CALENDAR_MONTH_CAL_MONTH_CODE" )
    AND ( "V_FAITS"."R_VALEUR_AXE"      = "DIM_SERVICE"."SERVICE_ACS" )
    AND ( (to_number("DIM_EX_POST"."COMPTABILISATION_ID_FONC" )) = "V_DIMENSIONS_FAITS"."NE_ID" )
  )Output :
0 rows inserted

Similar Messages

  • How can I use multiple row insert or update into DB in JSP?

    Hi all,
    pls help for my question.
    "How can I use multiple rows insert or update into DB in JSP?"
    I mean I will insert or update the multiple records like grid component. All the data I enter will go into the DB.
    With thanks,

    That isn't true. Different SQL databases have
    different capabilities and use different syntax, That's true - every database has its own quirks and extensions. No disagreement there. But they all follow ANSI SQL for CRUD operations. Since the OP said they wanted to do INSERTs and UPDATEs in batches, I assumed that ANSI SQL was sufficient.
    I'd argue that it's best to use ANSI SQL as much as possible, especially if you want your JDBC code to be portable between databases.
    and there are also a lot of different ways of talking to
    SQL databases that are possible in JSP, from using
    plain old java.sql.* in scriptlets to using the
    jstlsql taglib. I've done maintenance on both, and
    they are as different as night and day.Right, because you don't maintain JSP and Java classes the same way. No news there. Both java.sql and JSTL sql taglib are both based on SQL and JDBC. Same difference, except that one uses tags and the other doesn't. Both are Java JDBC code in the end.
    Well, sure. As long as you only want to update rows
    with the same value in column 2. I had the impression
    he wanted to update a whole table. If he only meant
    update all rows with the same value in a given column
    with the same value, that's trivial. All updates do
    that. But as far as I know there's know way to update
    more than one row where the values are different.I used this as an example to demonstrate that it's possible to UPDATE more than one row at a time. If I have 1,000 rows, and each one is a separate UPDATE statement that's unique from all the others, I guess I'd have to write 1,000 UPDATE statements. It's possible to have them all either succeed or fail as a single unit of work. I'm pointing out transaction, because they weren't coming up in the discussion.
    Unless you're using MySQL, for instance. I only have
    experience with MySQL and M$ SQL Server, so I don't
    know what PostgreSQL, Oracle, Sybase, DB2 and all the
    rest are capable of, but I know for sure that MySQL
    can insert multiple rows while SQL Server can't (or at
    least I've never seen the syntax for doing it if it
    does).Right, but this syntax seems to be specific to MySQL The moment you use it, you're locked into MySQL. There are other ways to accomplish the same thing with ANSI SQL.
    Don't assume that all SQL databases are the same.
    They're not, and it can really screw you up badly if
    you assume you can deploy a project you've developed
    with one database in an environment where you have to
    use a different one. Even different versions of the
    same database can have huge differences. I recommend
    you get a copy of the O'Reilly book, SQL in a
    Nutshell. It covers the most common DBMSes and does a
    good job of pointing out the differences.Yes, I understand that.
    It's funny that you're telling me not to assume that all SQL databases are the same. You're the one who's proposing that the OP use a MySQL-specific extension.
    I haven't looked at the MySQL docs to find out how the syntax you're suggesting works. What if one value set INSERT succeeds and the next one fails? Does MySQL roll back the successful INSERT? Is the unit of work under the JDBC driver's control with autoCommit?
    The OP is free to follow your suggestion. I'm pointing out that there are transactions for units of work and ANSI SQL ways to accomplish the same thing.

  • How to find out the rows inserted between a time period.

    Hi,
    Please help me to solve this.
    Table - emp.
    Colmns - empno(Primary Key),ename, mgr
    How to find out the rows inserted between a time period.
    For eg:- Between 02-Oct-2006 1 PM and 03-Oct-2006 2 PM.
    regards,
    Mathew.

    Hi,
    Maybe work:
    For each row, ORA_ROWSCN returns the conservative upper bound system change number (SCN) of the most recent change to the row. This pseudocolumn is useful for determining approximately when a row was last updated. It is not absolutely precise, because Oracle tracks SCNs by transaction committed for the block in which the row resides
    e.g.:
    SGMS@ORACLE10> create table test(cod number);
    Table created.
    SGMS@ORACLE10> insert into test values (1);
    1 row created.
    SGMS@ORACLE10> insert into test values (2);
    1 row created.
    SGMS@ORACLE10> commit;
    Commit complete.
    SGMS@ORACLE10> insert into test values (3);
    1 row created.
    SGMS@ORACLE10> commit;
    Commit complete.
    SGMS@ORACLE10> select SCN_TO_TIMESTAMP(ora_rowscn),ora_rowscn,cod from test;
    SCN_TO_TIMESTAMP(ORA_ROWSCN)       ORA_ROWSCN        COD
    06/11/06 08:56:56,000000000         727707205          1
    06/11/06 08:56:56,000000000         727707205          2
    06/11/06 08:57:05,000000000         727707210          3Cheers

  • How to change the "1 row inserted" message in a Form

    I DEVELOPED A FORM THAT BASICALLY ALLOWS USERS TO INSERT RECORDS IN A TABLE.
    AFTER THE "INSERT" BUTTON IS CLICKED, THE ROW IS INSERTED AND A MESSAGE SAYING "1 ROW INSERTED" IS DISPLAYED.
    I WOULD LIKE TO REPLACE THAT TEXT BY SOMETHING ELSE... SOME SORT OF EXPLANATION TO THE USER.
    MAYBE I WOULD ALSO LIKE TO REDIRECT THE USER TO ANOTHER SCREEN (NOT SURE YET) .
    HOW CAN I ACCOMPLISH THIS?
    ANY HELP WILL BE GREATLY APPRECIATED...
    TKS!!!

    tks dmitry!
    i have not tried yet but i am sure it will work.
    also, i found a posting regarding how to redirect the user to another screen.
    is there any good documentation somewhere on Portal APPLICATIONS development?
    Tks again...
    null

  • Multi-row insert in master-detail tables

    Hi, I'm using jdev 10.1.3.2 with jheadstart and my problem is:
    I hava a master-detail structure, both are tables and my goal is that I want multi insert (exactly 3) in master and detail table when user makes new order(some business scenario). I cannot create rows in master or detail VO by overriding create() method because its entities have complex primary keys and some part of this key is populated by the user with lov. So I set in jhs new rows to 3 and checked multi-row insert allowed but the problem is that overall I can only create rows in master table after I submit form. I want to create row in master table and fill rows in detail table, and after that I want to have opportunity to create second (or even third) row in master table and fill rows in detail table.
    thanks for help.
    Piotr

    See JHS DevGuide: 3.2.1. Review Database Design:
    If you are in the position to create or modify the database design, make sure all
    tables have a non-updateable primary key, preferably consisting of only one
    column. If you have updateable and/or composite primary keys, introduce a
    surrogate primary key by adding an ID column that is automatically populated.
    See section 3.2.4 Generating Primary Key Values for more info. Although ADF
    Business Components can handle composite and updateable primary keys, this
    will cause problems in ADF Faces pages. For example, an ADF Faces table
    manages its rows using the key of the underlying row. If this key changes,
    unexpected behavior can occur in your ADF Faces page. In addition, if you want
    to provide a drop down list on a lookup tables to populate a foreign key, the
    foreign key can only consists of one column, which in turn means the referenced
    table must have a single primary key column.
    Groeten,
    HJH

  • Issues in Table with Multi-Row Insert

    I have created a master detail screens using jheadstart on 2 separate pages, Master in the Form layout and detail in the Table Layout with multi-row insert, update and delete flags ON. Have set the New Rows count = 2.
    Issue 1
    If I try to delete any existing rows, it gives error for new rows saying value is required for the mandatory fields. It should just ignore the new rows if I have not updated any values for any attributes in the those row(As it does for non Master-Detail Table layout). I guess this might be happening because the jheadstart code is setting the foreign key for new rows the detail, but not resetting the status of the rows back to INITIALIZED.
    I also noticed that the create() of underlying EO is getting called for those blank rows when I click on 'Save' button, even if I have not changed any data in those rows.
    Issue 2
    When I try to select the new rows also for deletion, I am getting a '500 Internal Server Error' with following stack trace... This is also happening for normal (non Master-Detail) Table layout.
    java.lang.IllegalStateException: AdfFacesContext was already released or had never been attached.     at oracle.adf.view.faces.context.AdfFacesContext.release(AdfFacesContext.java:342)     at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:253)     at oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:87)
    Issue 3
    I have put some validation code in the validate() method in the MyEntityImpl.java class.
    The validate method seems tobe getting called lots of times, in my case 20 times, where the new rows are just 2.
    Environment:
    Jdeveloper 10.1.3, JHeadStart 10.1.3 build 78, Windows XP
    thanks

    Thanks for the reply.
    Issue 1:
    What I have observed that in case of multi-row select enabled tables, the blank rows do not have any data. This is because the EO's create() method is called only when we post the data using 'Save' button. Thus the Foreign Keys are also not setup. This is a correct behavior since create() and FK setups etc should get done only if the user has inputted any value in the new rows and thus intend to insert new data into the table.
    I am able to find the exact cause of this issue. It is happening because in the details table, I have a column which needs tobe shown as checkbox. Since we can only bind checkbox to an Boolean attribute in VO, I have created a transient attribute of type Boolean, which basically calls the getter/setter of actual attribute doing the String "Y"/"N" to true/false conversion. Here is code for the transient attribute getter/setter
    public Boolean getDisplayOnWebBoolean() {
    return "Y".equals(getDisplayOnWeb()) ? Boolean.TRUE : Boolean.FALSE;
    public void setDisplayOnWebBoolean(Boolean value) {
    if(Boolean.TRUE.equals(value))
    setDisplayOnWeb("Y");
    else
    setDisplayOnWeb("N");
    Now when I click on the "Save" button, the setter for the boolean field is getting called with the value = false and this is resulting into the row being maked as dirty and thus the validation for the required attributes is getting executed and failing.
    Issue 2:
    Confirmed that correct filter-mapping entries are present in the web.xml.
    Now when I select the new blank rows for deletion and click save, following exception is thrown:
    java.lang.ClassCastException: oracle.jheadstart.controller.jsf.bean.NewTableRowBean at oracle.jheadstart.controller.jsf.bean.JhsCollectionModel.getRowsToRemove(JhsCollectionModel.java:412) at oracle.jheadstart.controller.jsf.bean.JhsCollectionModel.doModelUpdate(JhsCollectionModel.java:604) at oracle.jheadstart.controller.jsf.lifecycle.JhsPageLifecycle.processModelUpdaters(JhsPageLifecycle.java:541) at oracle.jheadstart.controller.jsf.lifecycle.JhsPageLifecycle.validateModelUpdates(JhsPageLifecycle.java:571)
    thanks - rutwik

  • Number of rows inserted is different in bulk insert using select statement

    I am facing a problem in bulk insert using SELECT statement.
    My sql statement is like below.
    strQuery :='INSERT INTO TAB3
    (SELECT t1.c1,t2.c2
    FROM TAB1 t1, TAB2 t2
    WHERE t1.c1 = t2.c1
    AND t1.c3 between 10 and 15 AND)' ....... some other conditions.
    EXECUTE IMMEDIATE strQuery ;
    These SQL statements are inside a procedure. And this procedure is called from C#.
    The number of rows returned by the "SELECT" query is 70.
    On the very first time call of this procedure, the number rows inserted using strQuery is *70*.
    But in the next time call (in the same transaction) of the procedure, the number rows inserted is only *50*.
    And further if we are repeating calling this procedure, it will insert sometimes 70 or 50 etc. It is showing some inconsistency.
    On my initial analysis it is found that, the default optimizer is "ALL_ROWS". When i changed the optimizer mode to "rule", this issue is not coming.
    Anybody faced these kind of issues?
    Can anyone tell what would be the reason of this issue..? any other work around for this...?
    I am using Oracle 10g R2 version.
    Edited by: user13339527 on Jun 29, 2010 3:55 AM
    Edited by: user13339527 on Jun 29, 2010 3:56 AM

    You have very likely concurrent transactions on the database:
    >
    By default, Oracle Database permits concurrently running transactions to modify, add, or delete rows in the same table, and in the same data block. Changes made by one transaction are not seen by another concurrent transaction until the transaction that made the changes commits.
    >
    If you want to make sure that the same query always retrieves the same rows in a given transaction you need to use transaction isolation level serializable instead of read committed which is the default in Oracle.
    Please read http://download.oracle.com/docs/cd/E11882_01/appdev.112/e10471/adfns_sqlproc.htm#ADFNS00204.
    You can try to run your test with:
    set  transaction isolation level  serializable;If the problem is not solved, you need to search possible Oracle bugs on My Oracle Support with keywords
    like:
    wrong results 10.2Edited by: P. Forstmann on 29 juin 2010 13:46

  • PHP Multiple Row Insert

    I've created a Database schema that will allow the admin to
    easily update thier form. To do this I am using the data from the
    DB to dynamically create the form. For example, if the admin wants
    to add a new input to the form, they can do that by giving it a
    name and a type, such as text or radio.
    I've written code that displays the form based on the data.
    I'm stuck on getting the results from the form inserted back to the
    DB. Hopefully I can explain this well enough without having to post
    all the details.
    I have one table that is the responses from the form. Each
    row contains 5 columns that represent the request, the question,
    the option chosen, any details from the option chosen (text from a
    text field) and a customer id.
    I need to do an insert that will create a new row for the
    user's response to each question. I'm having some difficulty
    creating this mutiple row insert. Here is what I have so far, I'm
    using a mix of a DW insert with my own code. I'm hoping it's just a
    syntax issue...but it could be more. Thanks in advance.

    I didn't really explain the result. Nothing is inserted into
    the DB and everything that appeared on the page before adding the
    insert now no longer appears.

  • Dyn sql execute immediate  A plsql block returning sql%rowcount of rows inserted

    I would like to get the number of rows inserted in a dynamic sql statement like following.
    execute immediate
    'begin insert into a(c1,c2,c3)
    (select ac1,ac2,ac3 from ac where ac1=:thekey
    UNION select tc1,tc2,tc3 from tc where tc1=:otherkey); end;' using in key1,in key2;
    I have tried per the oracle8i dyn sql chapter in doc RETURN sql%rowcount won't compile.
    also add this to statement 'returning sql%rowcount into :rowcount'
    no luck.
    any ideas.?
    thanks.

    Quick comment first - I'm not sure why you are even using dynamic SQL here. There is nothing dynamic about your statement. It is equivalent to just:
    insert into a (c1, c2, c3)
      select ac1, ac2, ac3
        from ac
       where ac1 = key1
      UNION
      select tc1, tc2, tc3
        from tc
       where tc1 = key2;Unless you are really dynamically changing a table or column name here and just didn't show it in your example, you certainly don't want the overhead of NDS for this insert in this situation.
    In any case, you just need to evaluate SQL%ROWCOUNT in the next statement.
    insert ...;
    if sql%rowcount = 0 then
      -- nothing was inserted
    end if;

  • Count the number of rows inserted

    Hi,
    Is there a way to count the number of rows processed post DML in PL/SQL?
    For eg,
    BEGIN
    INSERT INTO TMP1
    SELECT * FROM EMP;
    a function to count the number of rows inserted into tmp1

    SQL> set serveroutput on;
    SQL> begin
    2 insert into tmp1 select * from emp;
    3 dbms_output.put_line(SQL%ROWCOUNT||' rows inserted');
    4 end;
    5 /
    15 rows inserted
    PL/SQL procedure successfully completed.

  • Count number of rows inserted...

    Hi all,
    I need to develop a shell script which inserts data from one db to another and then insert the number of rows inserted in another table.
    pls find the script below:
    export ORACLE_SID=msbep001test
    export ORACLE_HOME=/voldev/app8i/oracle/product/8.1.7.4
    error_code="ORA-"
    error_log="/voldev/app8i/oracle/product/8.1.7.4/scripts/logs/log_test`date '+%d%m%y%H%M'`.txt"
    rm -f `echo $error_log`
    /voldev/app8i/oracle/product/8.1.7.4/bin/sqlplus mrep001/XXXXXXXX@msbep001test << EOF |tee `echo $error_log`
    set serveroutput on;
    set timing on;
    set feedback on;
    insert /*+ APPEND */ into poonam nologging select * from FCT_ALL_FCR_TXNS_MMDD@drp where rownum <5;
    commit;
    DBMS_OUTPUT.PUT_LINE(SQL%ROWCOUNT);
    EOF
    myvar=`cat "$error_log" |grep "$error_code"|grep -v ORA-00604|grep -v ORA-00372|grep -v ORA-01110|grep -v ORA-01552|grep -v ORA-06512|grep -v ORA-02063|wc -l`
    if [ $myvar -gt 0 ]
    then
    echo ""
    echo ""
    echo "ERROR in inserting data!"
    echo "Please Contact Database Administrator"
    echo ""
    echo ""
    exit 1
    else
    echo ""
    echo ""
    echo "Inserting of data OK"
    echo ""
    echo ""
    exit 0
    fi
    can anyone help me pls...

    Funny script.
    Let me guess. The number of inserted rows is (max) 4 (as you have where rownum <5;)
    and the DBMS_OUTPUT shows 0 (as there is a statement between INSERT and SQL%ROWCOUNT)
    There is nothing like:
    then insert the number of rows inserted in another table.You want this:
    declare cnt number;
    begin
    insert /*+ APPEND */ into poonam nologging select * from FCT_ALL_FCR_TXNS_MMDD@drp;
    cnt := SQL%ROWCOUNT;
    insert into result_table (rows_inserted) value (cnt);
    commit;
    DBMS_OUTPUT.PUT_LINE(cnt);
    end;
    /And, never, never never, user INSERT INTO .... SELECT * in real code. Whenever somebody adds fields or changes the "order" you might either fail or "insert first_name into last_name".
    And the "error handler" on UNIX just writes a message to a LOG file? No status, no active monitoring. Risky!
    And what happens if an error occurs and it's not one of the listed ones?
    -- Andy

  • Checking for duplicate primary keys on row inserts

    Checking for duplicate primary keys on row inserts
    I have a situation where I will be making bulk table inserts knowing that the primary key value will in some cases already exist. In this is the case I simply want to ignore the duplicate inserts.
    Should I be performing a sub-query on the table and using a statement like:
    where not exist in
    Or is there a cleaner way of discarding or checking for duplicates on insert.
    My concerns were mainly one of performance, as my routine will be inserting a few thousand rows in its operation.

    The MERGE commnad is a good option when a large percentage of the data will exist in the target because it is much more efficient to attempt to update then insert when the update affects zero rows than capture an error and convert it to an update.
    However, since in this case it would appear that only a few rows will alreadys exist and we want to ignore the duplicates when they exist then
    begin
    insert
    exception
    when dup_value_in_index then null;
    end
    would be the way to code this one. The bulk insert version has in 9.2 the ability to store the errors so that they can all be handled at once which means the rest of the array insert can work.
    HTH -- Mark D Powell --

  • Master-Detail Multi-Row Insert

    Im still using Oracle forms 6i. How do we create here in ADF for the transaction in master-detail operation specially in inserting multi-row in detail. In forms we can use key-next item trigger next_record for new record transaction for drugs or we can use bar code scanning to insert new records & automatically go to next records waiting for another input...
    pls help me i want to upgrade & pls sorry for my english...
    just want this adf behave like forms in terms of master-detail transaction entry...
    i appreciate if someone can help me or give me demo file to download & play with it...
    Edited by: user8983555 on Nov 10, 2010 10:30 AM

    tnx for the fast reply..
    im new with jdeveloper and no knowledge in java or html. im concentrated in pl/sql , forms 6i.We still using this until now in character base in unix environment but some module in gui mode.im working in hospital which is complete informations sytem (stock,pharm..etc...gl...) which in bulk transactions specially patients outclinic & inpatients charges.now we have also this reservations system for out clinics thats the reason im like to develop for in a web that a patient can reserve on line and i dont like running our application in different front end (forms 6i &jdeveloper).
    (now currently checking form10g & just set up AS10g which is working.can deploy and connect,LAN). but im very interested in ADF when i see the demo on Oracle website.
    now our company pplanning to change our application to power builder whiich is not good in performance regarding in hadling big databases (slow query,needs burst AS...) thru to the demonstration of the
    apllication vendors.
    im very glad if you can help. can you post a links or demo file to do this as you said....(You can replicate the code in the button in some other event on your page, for example when the value of the last field in the row is changed.
    It all comes down to the question of when you actually want to create a new row, and in that event you call the createInsert method.)
    this is my only problem now to make this master-detail multi-row insert like ora form.
    again sorry for my english...

  • Sqlite multi-row insert

    In php & mysql I am used to being able to do multi row inserts into a table using;
    INSERT INTO table (column1,column2) VALUES (val1,val2),(val3,val4)
    Is there any Sqlite equivalent? I need to populate around 100 rows on first run of a mobile application.
    Thanks,
    Pete

    If what _spoboyle recommends doesn't work in AIR and if you haven't already, look into the SQLConnection.begin() and commit().  It seems at least you can group your SQL transactions.

  • Num rows  inserted by DML query

    This is an embarrasingly simple question, but I've spent half an hour searching and can't find the answer!
    I have some procs which insert records based on a query.
    [insert into fred (MYVA) (select (STUFF from JOE where SomeInfo = 'FRED')]
    I want to know how many records were added by the query.
    I KNOW it's going to be obvious...
    Iain

    SQL> set serveroutput on
    SQL> begin
      2    insert into test select * from scott.emp ;
      3    dbms_output.put_line(SQL%RowCount||' rows inserted.') ;
      4  end ;
      5  /
    14 rows inserted.
    PL/SQL procedure successfully completed.
    SQL>

Maybe you are looking for

  • Return after PDF display

    I have a BSP that generates a PDF from a smartform when the user clicks a button, returns it as an XSTRING, and displays it, based on notes i found on other threads here. The smartform comes up fine, but when i close the page with the PDF displayed,

  • Your firefox profile can not be loaded. it may be missing or inaccessible

    i just updated my computer, after i did so, firefox wont open, it says your firefox profile can not be loaded, it may be missing or inaccessible. I have read every thread in here, and nothing works. i can't find the profiles.ini folder and i cant cre

  • Android and iOS Facebook?

    Is there a good and fast solution for Facebook features for an Android + iOS game? Would the solution be the same for both types of devices? I am preferably looking at a native solution which would be in co-relation with the native FB applications on

  • Integrating checkboxes in table.....

    Hi, I have a table which is populated using a BAPI. The fields are diaplayed as InputFileds(editable) so that the user can edit them. Whenever a field of a row is edited, the user has to click a CheckBox next to it, to indicate that he/she has edited

  • Cancelling app subscriptions on phone

    I have an app subscription on my phone and it has way too many bugs to be paying $4 per week. I am trying to either get a refund for the months it hasn't worked, or cancel the entire subscription if a refund isn't possible.  I looked under settings/a