Edit / Insert Multiple Records

OK, I'm a Rank beginner here. I have seen the MX Kollection many years ago when I used Dreamweaver MX. I have just purchased the Dreamweaver developer's toolkit in my attempt to try and make editing multiple records in a database dreamweaver friendly.
But I just cannot se how you make the tables that are shown in all of the tutorials that are displayed on the web! They tend to just skip past all of that and rant about how good this product is.
Can anybody show me a page or site that will take me through how to set up and build some pages that will allow me to edit multiple records.
Puhhhleeeaaassseee!!!

You could look at the INSERT ALL statement found in the documentation here:
http://download.oracle.com/docs/cd/B10501_01/server.920/a96540/statements_913a.htm#2133161
My personal opinion is that you probably won't see any benefit because under the hood I think Oracle will still be doing single row inserts. I could be wrong though.
The only way to confirm was if you did a test of multiple inserts vs an INSERT ALL, that is if the INSERT ALL met your requirements.
HTH.

Similar Messages

  • How to insert multiple records in a single query

    Dear all,
    Can you please tell
    how to insert multiple records in a single query ??

    INSERT INTO table_name (column_1, column_2) VALUES ('value_A', 'value_B')OR
    INSERT INTO table_name
    (column_1, column_2)
    SELECT 'value_A', 'value_B' FROM DUAL
    UNION ALL
    SELECT 'value_C', 'value_D' FROM DUAL
    ;Edited by: Benton on Nov 9, 2010 1:59 PM

  • Insert multiple record Oracle forms 6i/9i/10g

    Hi,
    how can i insert multiple record using a tabular view in oracle form,
    do i have to use for loop?
    can someone help me? i've kindda stuck in this problem..
    scenario:
    i have 5 display of last_name text_item and i put 4 names on it..
    if i use insert into, it only get the 4th name i putted..
    question:
    how can i put them all together?

    Hi Vansul,
    for example, let us use the field name last_name on the employees table
    and we have text_item named text_last_name that has been displayed 4 times.
    and i will put 4 names on it.
    last name
    brown
    marco
    lester
    king
    when i click the submit button, it will only get the last_name king.
    now the question is how can i insert them all in my table?
    my PL/SQL in my submit button is
    begin
    insert into employees
    +(last_name)+
    values(:blk_emp.text_last_name);
    standard.commit;
    end;
    any help? I really need to solve this one.
    Edited by: Nelzki on Jan 26, 2012 1:59 AM

  • Inserting multiple records into a database from a table

    I have a dynamic table with rows upto 10. i am trying to insert all the records in these rows into a database ( msaccess)
    table name: Table1 ( in my form )
    Database table : movies_comments ( as posted in stefan's forums ).
    table columns: username, movieid, comments
    i am using the following code.
    Database.ExecSQL() function is as posted in stefcamerons forums.
    var tlength = xfa.resolveNode("form1.#subform[0].Table1.Row1[*]").length;
    xfa.host.messageBox("tlength is :" +tlength);
    for ( var i = 1; i <= tlength; i++)
    var username = xfa.resolveNode("form1.#subform[0].Table1.Row1["+i+"].user_name").rawValue;
    var movieID = xfa.resolveNode("form1.#subform[0].Table1.Row1["+i+"].movie_id").rawValue;
    var commentS = xfa.resolveNode("form1.#subform[0].Table1.Row1["+i+"].comment_").rawValue;
    Database.ExecSQL("INSERT INTO movie_comments (username, movieId, comment) VALUES ('username','movieID', 'commentS');");
    i am trying to insert multiple records using the code above. But i am getting error
    GeneralError: Operation failed.
    XFAObject.resolveNode:1:XFA:form1[0]:#subform[0]:Button1[0]:click
    SOM expression returned list when single result was expected
    suggest me an alternate way to insert multiple records from a table into a database.
    thank Q

    figured it out. I changed the ...OR (alternative names = colname) in the recordset to ...OR (alternative names LIKE %colname%). Works like a charm now- the result of a good night's sleep.

  • Insert multiple records into a table(Oracle 9i) from a single PHP statement

    How can I insert multiple records into a table(Oracle 9i) from a single PHP statement?
    From what all I've found, the statement below would work if I were using MySQL:
         insert into scen
         (indx,share,expire,pitch,curve,surface,call)
         values
         (81202, 28, 171, .27, 0, 0, 'C' ),
         (81204, 28, 501, .25, 0, 0, 'C' ),
         (81203, 17, 35, .222, 0, 0, 'C' ),
         (81202, 28, 171, .27, 2, 0, 'C' ),
         (81204, 28, 501, .20, 0, 1, 'C' ),
         (81203, 28, 135, .22, 1, 0, 'C' )
    The amount of records varies into the multiple-dozens. My aim is to utilize the power of Oracle while avoiding the i/o of dozens of single-record inserts.
    Thank you,
    Will

    You could look at the INSERT ALL statement found in the documentation here:
    http://download.oracle.com/docs/cd/B10501_01/server.920/a96540/statements_913a.htm#2133161
    My personal opinion is that you probably won't see any benefit because under the hood I think Oracle will still be doing single row inserts. I could be wrong though.
    The only way to confirm was if you did a test of multiple inserts vs an INSERT ALL, that is if the INSERT ALL met your requirements.
    HTH.

  • Insert Multiple records using Database adapter with Stored procedure func

    Hi All,
    I want to insert multiple records on a database using a stored procedure. I wanted to insert those records using a Database Adapter and the Database adapter should be invoked by a Mediator.
    Can somebody suggest me with ideas whether it can be acheived with OOB capabtilities in SOA suite or not?
    Thanks for your help in advance.
    Thanks,
    Shiv

    The use case you want to achieve is feature supported by the DBAdapter and it is possible to invoke the same from mediator.
    Please have a look at the oracle documentation and you should be able to get the necessary information.
    The below links should help you as well:
    http://download.oracle.com/docs/cd/E15523_01/integration.1111/e10231/adptr_db.htm
    http://blogs.oracle.com/ajaysharma/2011/03/using_file_adapter_database_adapter_and_mediator_component_in_soa_11g.html
    There are some video tutorials as well :)
    http://www.youtube.com/watch?v=dFldS-fDx70 This should also help
    Thanks,
    Patrick

  • Inserting multiple records in to database table using webdynpro abap

    Hi all,
    I have created a username inputfield,a button and a table
    with one coloumn.
    If i enter  names in the input field then the values should be
    displayed in that table.
    Even i have got the answer i am not able to insert
    the values in to database(ztable) table.
    i.e. only one value(1st) was inserted the second value was
    not inserted ....
    so kindly send me the coding to insert multiple records
    into the database table......
    by,
    ranjith

    hi Ranjith,
    If you want to insert multiple records from the webdynpro view table to database table then try the following code.
    DATA lo_nd_tablenode TYPE REF TO if_wd_context_node.
      DATA lo_el_tablenode TYPE REF TO if_wd_context_element.
      DATA ls_tablenode TYPE wd_this->element_tablenode.
      DATA it_tablenode LIKE STANDARD TABLE OF ls_tablenode.
      navigate from <CONTEXT> to <tablenode> via lead selection
      lo_nd_tablenode = wd_context->get_child_node( name = wd_this->wdctx_tablenode ).
      get element via lead selection
      lo_el_tablenode = lo_nd_tablenode->get_element(  ).
      get all declared attributes
      lo_nd_tablenode->get_static_attributes_table(
      IMPORTING
        table = it_tablenode ).
    MODIFY databasetablename FROM TABLE  it_tablenode.
    here it_tablenode is the internal table which holds the value from webdynpro view..
    Regards,
    Shamila.

  • Inserting multiple records in JSP and setting date format

    Hi,
    I'm looking at the possibilities for using JSP's as a web application.
    I've got a few questions about it:
    1) Is it possible to insert multiple records in the detail block of my JSP. Normally when I click the 'insert button', an insert JSP comes up, which is a html form with the possiblity of inserting only one record.
    2) Is it possible to change the format of a date field. Now a date field is displayed as 'YYYY-MM-DD'. My nls_date_format is something else.
    3) I can't get the static combo box working for the class EditCurrentRecord. The normal use combo box is no problem. Probably, I don't have the syntax correct. Could anyone provide an example for this.

    2) Just use the Calendar object. You can format the date any way you want. I am assuming that you are talking about how the date appears after a .toString() call.
    Here is how I do it (this code will probably look very bad I am trying to type into a very small space so bear with me):
    public static String traceDate(java.sql.Timestamp dt)
    try
    if (dt == null)
    return " ";
    else
    Calendar clFmt = Calendar.getInstance();
    clFmt.setTime(dt);
    return
    String.valueOf(clFmt.get(Calendar.MONTH) + 1) + "/" +
    String.valueOf(clFmt.get(Calendar.DAY_OF_MONTH)) + "/" +
    String.valueOf(clFmt.get(Calendar.YEAR)) + " " +
    String.valueOf( (clFmt.get(Calendar.HOUR) == 0) ? 12 : clFmt.get(Calendar.HOUR) ) + ":" +
    padLt(String.valueOf(clFmt.get(Calendar.MINUTE)),2) + ":" +
    padLt(String.valueOf(clFmt.get(Calendar.SECOND)),2) + " " +
    (clFmt.get(Calendar.AM_PM) == Calendar.AM ? "AM" : "PM");
    catch (Exception e)
    throw new RuntimeException(e.getMessage());
    (padLt is a custom function that just pads 0s to the left of the number)

  • ORA-01654 error message when inserting multiple records

    Hello all,
    I have a Test table with attributes TEST_ID, TEST_NAME, TEST_DATE, STATUS, and want to insert multiple records into this table based on user input form. If user select a value from the drop down list, and the number of records to insert into the Test table, the application should insert that many into the Test table with the same TEST_DATE, STATUS, but TEST_NAME should be the drop down list value + i (1....the number of inserted records). I manually created the form, and wrote a sql for the process.
    For example if the user select MUSIC, 3 then data should look like this
    TEST_ID TEST_NAME TEST_DATE STATUS
    1 MUSIC1 04/06/2010 Y
    2 MUSIC2 04/06/2010 Y
    3 MUSIC3 04/06/2010 Y
    I got the error ORA-01654: unable to extend index TEST_TOOL_ID.TEST_PK by 128 in table space FLOW_13120862905990037739.
    The process query
    DECLARE IDTEST NUMBER := 1;
    BEGIN
    WHILE (IDTEST < :P1_COUNT + 1) LOOP
    INSERT INTO TEST ( TEST_NAME, TEST_DATE, STATUS )
    VALUES ((:P1_TEST_NAME || ' ' ||IDTEST), SYSDATE, 'Y');
    END LOOP;
    END;
    Here is the link to this application
    http://apex.oracle.com/pls/apex/f?p=4000:1:3173416575551580::NO:RP:FB_FLOW_ID,F4000_P1_FLOW:32828,32828
    Any help would be appreciated.
    Thanks,
    Karoline

    This is the output i get when i change the getMessage with printStackTrace.
    String getMessage() replaced with printStackTrace:
    G:\studies\Chapter11\MakeDB.java:33: 'void' type not allowed here
                   System.out.println("Could not drop primary key on UserStocks table: "
    ^
    G:\studies\Chapter11\MakeDB.java:43: 'void' type not allowed here
                   System.out.println("Could not drop UserStocks table: "
    ^
    G:\studies\Chapter11\MakeDB.java:54: 'void' type not allowed here
                   System.out.println("Could not drop Users table: "
    ^
    G:\studies\Chapter11\MakeDB.java:64: 'void' type not allowed here
                   System.out.println("Could not drop Stocks table: "
    ^
    G:\studies\Chapter11\MakeDB.java:83: 'void' type not allowed here
                   System.out.println("Exception creating Stocks table: "
    ^
    G:\studies\Chapter11\MakeDB.java:102: 'void' type not allowed here
                   System.out.println("Exception creating Users table: "
    ^
    G:\studies\Chapter11\MakeDB.java:119: 'void' type not allowed here
                   System.out.println("Exception creating UserStocks table: "
    ^
    G:\studies\Chapter11\MakeDB.java:133: 'void' type not allowed here
                   System.out.println("Exception creating UserStocks index: "
    ^
    G:\studies\Chapter11\MakeDB.java:159: 'void' type not allowed here
                   System.out.println("Exception inserting user: "
    ^
    9 errors
    Tool completed with exit code 1

  • Inserting Multiple Records into two table

    I want to insert records from a ADF swing form into two tables. In the first table the primary key is generated by a trigger and then I need to retrieve the primary id generated and then insert multiple records in another table using the primarykey obtained from the first table as foreign key.
    How to do this ?

    User,
    If you're using ADF Business components, have a read on the DBSequence data type. If you have two VO's linked by a view link, and the FK is a DBSequence type, all this happens for you out-of-the-box.
    Hope this helps,
    john

  • Insert multiple records into database through internal table

    Hi
      please help me how to insert multiple records into database through internal table

    Hi,
    Welcome to SCN.
    Press F1 on INSERT statement and you will teh syntax as well the docu for the same.

  • Insert multiple records from web dynpro

    Hi,
    How to insert multiple records from web dynpro applications to SAP backend system ?
    Thanks,
    sowmya

    Hi soumya..
       if want to multiple row selected  then save into the Sap back End..
       value node--table.
    Backend value node=table_bapi_input;
       back end internal table --tableback.
    int size=wdcontext.nodeTable().size();
    int lead=wdcontext.nodeTable().getLeadSelection();
    table_bapi_input in=new table_bapi_input();
    wdcontext.nodetable_bapi_input().bind(in);
       for(int i=size-1;i>0;i--){
    tableback set=new tableback()
    if(lead==i || wdcontext.nodeTable().ismultiSelection(i)){
    set.setName(wdContext.nodeTable().getTableElementAt(i).getName();
    in.addZc_input(set);
    wdContext.currenttable_bapi_inputElement().modelobject().excute();
    wdContext.nodeOutput().invalidate();
    thanks
    jati

  • Insert multiple records into Oracle using Java

    Hi,
    Has anyone tried to insert multiple records into an Oracle table from Java? I have my data in a Java collection.Can I send a Java Collection to an Oracle Package as a PL/SQL Table Type? My problem is I dont want to instantiate a CallableStatement object everytime I do an insert. Instead I want to do that only once and then insert multiple records in one operation.
    Any suggestions will be appreciated,
    Thanks,
    Alex

    Hi Mensa,
    I went thru the code example in your book in chapter 8 (downloaded it from OTN). It looks like the java code for "public class myPLSQLIndexTab" might be a java stored procedure stored in the oracle database?
    Pardon my ignorance because I've never worked on java code in the oracle database itself but how would I call such a program outside the oracle database? For example say I have a batch job that downloads data from a webservice and that batch job is written in java and its sitting on a batch server somewhere on the network. But the java program that inserts data into the database is sitting in the oracle database (also somewhere in the same network). How can the java code sitting on the batch server talk to the java code sitting on the oracle server? Is it the same as calling a pl/sql package using CallableStatement?
    Thanks
    Alex

  • Insert Multiple records in single form

    Hi all,
    I have already come across inserting multiple rows into a table using ADF BC. The solution to this is in the following thread
    Re: How to create multiple new rows in ADF Table?
    However,
    The above solution is useful when we want to enter new values along with all the table entries getting displayed.
    What can I do If I dont want all the table values but just an 'AddEntries' page where I can only add new rows without having the entries in table getting displayed.
    Like,
    Say, a form has 5 rows
    Each row has empId, eMailSlNo ,eMail attributes
    EmpId is same for all 5 records but emailId is different.
    EmpId and eMailSlNo make the PK.
    empId generated using sequence.
    Now on submitting the form, I want all five records to be inserted.
    (can i use ADF form instead of ADF table for the ViewObject in this case. I tried ADF form but i could only insert 1 record at a time).
    I'm using 10.1.3.4
    Please help.
    Thanks in advance,
    Shri
    Edited by: newtoOTN on Dec 29, 2009 6:02 PM

    Hi Shri,
    ADF Form is meant for single insert/update. For multiple insert/update/delete using collection UI like table is preferred. I guess that either your db table or the UI table design has flaw (In my opinion but i don't know your usecase fully, so my guess might b wrong).
    I would suggest,
    - make EmpId as PK
    - have another table to store EmpId(foreign key),emailSiNo, email
    - Have master-detail relationship between both the db tables in ADF BC.
    - Create master-detail table UI and on selection of master, display detail and if no records found add records and commit.
    check these examples:
    http://www.oracle.com/technology/products/jdev/tips/mills/MasterDetailSync/Master_Detail_Synchronization_in_ADF_Faces.html
    http://andrejusb.blogspot.com/2007/06/create-edit-and-delete-operations-in.html
    Hope this makes sense.
    ~K

  • Insert multiple records help

    Hello all! I have implemented a simple shoppingcart (not for commercial purposes) and I would like to help me with the following code. When a user makes shopping, the items appear in a table with the use of a java servlet with arraylist.. When the user checkouts, I want to call a servlet that it will enter the items of shoppingcart (multiple records) in a table in my db (I use mysql). I have tried to write the following code but it doesn't work. Can you give me some hints how to achieve this?
    Sorry for my possible error codes but I m new in programming and I m trying to find the way..
    Thanx a lot for your help,
    danny
    import java.sql.*;
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.util.ArrayList;
    public class Checkout extends HttpServlet {
    public void doGet(HttpServletRequest req, HttpServletResponse res)
              throws ServletException, IOException {
    res.setContentType("text/html");
    PrintWriter out = res.getWriter();
    String[] itemsSelected;
    String[] priceSelected;
    String[] quantitySelected;
    itemsSelected = req.getParameterValues("productname");
    priceSelected = req.getParameterValues("price");
    quantitySelected = req.getParameterValues("quantity");
    // connecting to database
    Connection con = null;
    Statement stmt = null;
    PreparedStatement ps = null;
    try {
         //db connection
    String sql;
    sql = "INSERT INTO order (productname, price, quantity) VALUES (?,?,?)";
    ps = con.prepareStatement(sql);
    stmt = con.createStatement();
    for (int i = 0; i < itemsSelected.length; i++) {
    =
      ps.setString(1, itemsSelected[ i ]);
      ps.setString(2, priceSelected[ i ]);
      ps.setString(3, quantitySelected[ i ]);
           ps.executeUpdate();
       } catch (SQLException e) {
          throw new ServletException(e);
       } catch (ClassNotFoundException e) {
        throw new ServletException(e);
         } finally {
         try {
              if(stmt != null)
              stmt.close();
              if(ps != null)
              ps.close();
              if(con != null)
              con.close();
              } catch (SQLException e) {}
              out.close();
    }Message was edited by:
    danny44

    Well, after some tests I did, I understood that the variables have not be passed from the shoppingcart servlet to checkout. I declared the variables for 1 product (+productname+) ,not the array, as[b] hidden values in the shoppingcart servlet and when user clicked checkout button, checkout servlet was called and my db was updated succesfully. My problem is now, how all the products in the shopping cart can be successfully entered in the db because I receive only the last one product everytime I checkout. I think that I will probably have to declare the whole array of products and not the one string in my hidden values but I dont know how..
    If you have a solution to this, please help me.. I m new in java and I have read a lot to create my code and build my project so every help will be valuable for me to continue...
    Thanx again

Maybe you are looking for

  • How to format the Tabs in a Theme? (change colour / align)

    Hi, I have created an application using Theme 17 in http://htmldb.oracle.com/ . Can someone please tell me where I can modify the background colours of the tabs? I'm guessing this formatting is stored in a config file some where as the colour isn't v

  • Apply custom repeat formatting, column deletion, and sorts?

    I download a .csv sales report file weekly.  Is there a way to create and apply a pre-determined/custom formatting, deletion of columns, and "sorts?" The .csv data contains the same fields/headers on each week.  Then every week I go through and delet

  • Link in Image - jspdynpage

    Hi All, My requirement is to retrieve and display an image  from Oracle with a link. On click of the image, it should navigate to the specified page. How shall i acheieve this in jspdynpage? I was able to retrieve the image from oracle in the form of

  • My Flash Swf file dont load

    Ok do i made a Flash Swf, when i view in on adobe flash it works fine, but i need to upload it so i can use it on my site problem is when i do nothing loads, images, text. Its just a black box where the content should be but it just says Loading.

  • Regarding profiles,USER_EXIT function

    Hi all, 1. Can u please brief me how that USER_EXIT function works.I have gone through the help but i didnt understand it.So please let me know that as soon as possible. 2.One more thing regarding profiles:let me tell u what steps i have proceeded: I