Problem updating multiple rows in Oracle Application Express

Apologies if this is in the wrong forum.
I have added a column to a table in the SQL workshop in Apex. I now want to update it using some SQL commands and cannot figure out for the life of me how I terminate each command line. Below is an example of the following
When I use the following line
UPDATE "QUOTEES" SET "COUNTRY_CODE"='1GB' WHERE "QUOTEE_UID"='410'
It works fine but if I amend it to
UPDATE "QUOTEES" SET "COUNTRY_CODE"='1GB' WHERE "QUOTEE_UID"='410';
UPDATE "QUOTEES" SET "COUNTRY_CODE"='1GB' WHERE "QUOTEE_UID"='416';
UPDATE "QUOTEES" SET "COUNTRY_CODE"='1GB' WHERE "QUOTEE_UID"='424';
Then it doesn't work, I get an invalid character error. My main experience using SQL is in MySQL so I'm not aware of differences in Oracle.
Richard

Hi Richard,
I'm not familar with Apex, but that problem is similar to other tools.
You either need to "execute as script". In TOAD this would F5.
Or put empty lines in between;
UPDATE "QUOTEES" SET "COUNTRY_CODE"='1GB' WHERE "QUOTEE_UID"='410';
UPDATE "QUOTEES" SET "COUNTRY_CODE"='1GB' WHERE "QUOTEE_UID"='416';
UPDATE "QUOTEES" SET "COUNTRY_CODE"='1GB' WHERE "QUOTEE_UID"='424';Then you can execute one at a time.
Regards
Peter

Similar Messages

  • How to build a form with multiple tables in oracle application express

    Hi everyone,
    I have got problem in building a form with multiple tables.I have a main table with (20) columns and this main table is related to the other tables with the primary key-foreign key relation ship.My requirement is i have to build a form which has fields from many tables and all the fields are related to the main table using (ID) column.In that form if i enter ID field i have to get information from differnt tables.
    Please help me to solve this (building a form with mutiple tables)
    Thank you
    sans

    Sans,
    I am no Apex expert, but with a situation as "complex" as yours, have you thought about creating a VIEW that joins these 7/8 tables, placing an INSTEAD OF trigger on that view to do all the business logic in the database, and base your application on the view?
    This is the "thick-database" approach that has been gaining momentum of late. The idea is to put your business logic in the database wherever possible, and let the application (Form, Apex, J2EE, whatever) concentrate on UI issues,

  • Update multiple rows in oracle

    Hi,
    I have two tables like as follows and I need to update Table A (Name field) base on table B. I need help on this.
    Current Table A :
    ID  Line Code Amount Name
    111 1    MSCC 500    <null>
    111 2    MSCC 300    <null>
    111 3    MSCC 300    <null>
    111 4    MSCD 300    <null>
    111 5    TRFC 500    <null>
    111 6    TRFC 500    <null>
    111 7    TRFC 800    <null>
    222 1    MSCC 300    <null>
    Table B
    No  HD_ID Line Description Dr_AMT Cr_AMT
    111 2201  1    descA       300
    111 2202  1    descB       500
    111 2202  2    descC       500
    111 2203  1    descD              300
    111 2205  1    descE       300
    111 2206  1    descF       400
    111 2207  1    descG              600
    111 2209  3    descH
    222 2210  1    descI       300
    - Find Table A (ID) = Table B (No)
    - Find Table A Amount = Table B Dr_AMT / Cr_AMT
      - If Table A (Code) like '%C' then find Table B Dr_AMT field
      - If Table A (Code) like '%D' then find Table B Cr_AMT field
    - If return more than one records, then update the Table A (Name) by sequence as below
    Expecting result :
    Update Name in Table A
    ID  Line Code Amount Name
    111 1    MSCC 500    descB   <-- If Code like '%C' then find Table B Dr_AMT field = Amount 500 (1st)
    111 2    MSCC 300    descA   <-- If Code like '%C' then find Table B Dr_AMT field = Amount 300 (1st)
    111 3    MSCC 300    descE   <-- If Code like '%C' then find Table B Dr_AMT field = Amount 300 (2nd)
    111 4    MSCD 300    descD   <-- If Code like '%D' then find Table B Cr_AMT field = Amount 300 (1st)
    111 5    TRFC 500    descC   <-- If Code like '%C' then find Table B Dr_AMT field = Amount 500 (2nd)
    111 6    TRFC 500    <null>  <-- If Code like '%C' then find Table B Dr_AMT field = Amount 500 (3rd)
    111 7    TRFC 800    <null>  <-- If Code like '%C' then find Table B Dr_AMT field = Amount 800 (1st)
    222 1    MSCC 300    descI   <-- If Code like '%C' then find Table B Dr_AMT field = Amount 300 (1st)
    Thanks a lot~

    Hi all,
    Sorry for any inconvenience caused, the tables structure and samples data as below,
    Table A: ce_statement_lines_interface T1  (have many different bank_account_num and statement_date)
    bank_account_num  trx_date line_number   TRX_CODE Amount bank_trx_number
    11111111                  01-JAN-14 1              MSCC        500         <null>
    11111111                  01-JAN-14 2              MSCC        300         <null>
    11111111                  01-JAN-14 3              MSCC        300         <null>
    11111111                   01-JAN-14 4             TRFD         300         <null>
    11111111                  01-JAN-14 5              TRFC         500         <null>
    11111111                  01-JAN-14 6              TRFC         500         <null>
    11111111                  02-JAN-14 7              TRFC         800         <null>
    22222222                  02-JAN-14 1              MSCC        300         <null>
    Table B : GL_JE_LINES T2
    select je_header_id,je_line_num,code_combination_id,effective_date, accounted_dr, accounted_cr, description from GL_JE_LINES ;
    je_header_id je_line_num code_combination_id effective_date accounted_dr accounted_cr description
    5541725       1                 2290                        01-JAN-14       300                                 descA
    5541724       1                 2290                        01-JAN-14       500                                 descB
    5541729       1                 2290                        01-JAN-14       500                                 descC
    5541728       1                 2290                        01-JAN-14                         300               descD
    5541727       1                 2290                        01-JAN-14       300                                 descE
    5541721       1                 2290                        02-JAN-14       400                                 descF
    5541722       1                 2290                        02-JAN-14                        600                descG
    5541732       3                 2290                        02-JAN-14       850                                 descH
    5540157       1                 2286                        02-JAN-14       300                                 descI
    Table C : GL_JE_HEADERS H1
    select H1.je_header_id, H1.default_effective_date, H1.ACCRUAL_REV_JE_HEADER_ID from GL_JE_HEADERS H1;
    je_header_id default_effective_date ACCRUAL_REV_JE_HEADER_ID
    5541725       01-JAN-14                 <null>
    5541724       01-JAN-14                 <null>
    5541729       01-JAN-14                 <null>
    5541728       01-JAN-14                 <null>
    5541727       01-JAN-14                 <null>
    5541721       02-JAN-14                 <null>
    5541722       02-JAN-14                 <null>
    5541732       02-JAN-14                 <null>
    5541757       02-JAN-14                 <null>
    Table D : CE_STATEMENT_HEADERS_INT N1
    select N1.bank_account_num, N1.statement_date,N1.record_status_flag from CE_STATEMENT_HEADERS_INT N1;
    bank_account_num statement_date record_status_flag
    11111111                 31-DEC-13      T
    23456789                 31-DEC-13      T
    11111111                 01-JAN-14      N
    23456789                 01-JAN-14      T
    11111111                 02-JAN-14      N
    23456789                 02-JAN-14      N
    xxxx....
    Table E : CE_BANK_ACCOUNTS A1
    select A1.bank_account_num, A1.asset_code_combination_id from CE_BANK_ACCOUNTS A1 where A1.bank_account_num in ('11111111','22222222');
    bank_account_num asset_code_combination_id
    11111111                 2290
    22222222                 2286
    Condition details:
    1) Find out New statements status
    - select N1.record_status_flag = 'N' in Table D : CE_STATEMENT_HEADERS_INT N1
    2) Base on result(1) on table D (N1.bank_account_num and N1.statement_date)
    - select Table A: ce_statement_lines_interface T1
      - T1.bank_account_num = N1.bank_account_num
      - T1.trx_date = N1.statement_date
      - T1.bank_trx_number is null
    3) Find out A1.asset_code_combination_id (unique) on table E : CE_BANK_ACCOUNTS A1
      - N1.bank_account_num = A1.bank_account_num
    4) Find out T2.JE_HEADER_ID on table B : GL_JE_LINES T2
      - T1.trx_date = T2.effective_date
      - T2.code_combination_id = A1.asset_code_combination_id
      - T2.gl_sl_link_id is null
    5) Find out H1.ACCRUAL_REV_JE_HEADER_ID is null on Table C : GL_JE_HEADERS H1
      - T2.JE_HEADER_ID = H1.JE_HEADER_ID
      - T2.effective_date = H1.default_effective_date
      - H1.ACCRUAL_REV_JE_HEADER_ID is null
    5) Find out T2.description on table B : GL_JE_LINES T2 to update T1.bank_trx_number (Do not repeat to select the T2.description)
      - (T1.TRX_CODE LIKE '%C' AND T1.amount = T2.accounted_dr ) OR (T1.TRX_CODE LIKE '%D' AND T1.amount = T2.accounted_cr)
    Expecting Table A result ce_statement_lines_interface T1 (Do not repeat to select the T2.description into T1.bank_trx_number)
    bank_account_num  trx_date      line_number   TRX_CODE      Amount  bank_trx_number
    11111111                01-JAN-14      1                   MSCC             500    descB
    11111111                01-JAN-14      2                   MSCC             300    descA
    11111111                01-JAN-14      3                   MSCC             300    descE
    11111111                01-JAN-14      4                   TRFD             300    descD
    11111111                01-JAN-14      5                   TRFC             500    descC
    11111111                01-JAN-14      6                   TRFC             500    <null>
    11111111                02-JAN-14      7                   TRFC             800    <null>
    22222222                02-JAN-14      1                   MSCC            300    descI
    Many thanks to all again~

  • Updating multiple rows

    Hi,
    I have a problem updating multiple rows.
    I have the following update:
    update POI.PERFTABLE p set P.PERF_3YEAR_ANNO =
    (Select
    PERF_ANNO_DAUER
    rtrim(fs.match),
    3
    From POI.FONDSSTAMM fs ) where p.MATCH=match
    but I become the error: ORA-01427: single-row subquery returns more than one row.
    How must I write my SQL-Command that it works??????????
    thanxx
    Schoeib

    Hhhhmmmmm,
    -- So - this doesn't work .......
    UPDATE  POI.PERFTABLE p
    SET     P.PERF_3YEAR_ANNO =
        (   SELECT  PERF_ANNO_DAUER ( RTRIM( FS.Match ), 3 )
            FROM    POI.FONDSSTAMM fs
    WHERE   P.Match = v_Match
    -- Maybe - you could force the sub-select to return a single row.
    UPDATE  POI.PERFTABLE p
    SET     P.PERF_3YEAR_ANNO =
        (   SELECT  PERF_ANNO_DAUER ( RTRIM( FS.Match ), 3 )
            FROM    POI.FONDSSTAMM fs
            -- Restrict the sub-query to returning a single row.
            WHERE   FS.Some_ID = P.some_Id
    WHERE   P.Match = v_Match
    or even
    -- Since you are using a function why not adjust the function,
    --  or write a simular one, so that something like this would work.
    UPDATE  POI.PERFTABLE p
    SET     P.PERF_3YEAR_ANNO = PERF_ANNO_DAUER ( RTRIM( P.Match ), 3 )
    WHERE   P.Match = v_Match
    ;Dude,
    Eric Kamradt

  • Configuring Problem in Oracle Application Express  3.0  Print Server

    hi all,
    Configuring for my Oracle Application Express Print Server in apex 3.0 I have used apache foa and made all steps in the documentation
    http://www.oracle.com/technology/products/database/application_express/html/configure_printing.html
    the print attribute works but I have a problem in the pdf print with characters.
    My reports columns characters are turkish and when I linked to print pdf the print the turkish characters are seeming #
    and I try to change in the script apex_fop_render.jsp I changed the encode but the problem was not solved.Can you help please urgently!
    I am waiting your helps!

    Apache FOP does not support some character sets out of the box, i.e. Asian languages require additional configuration steps. Not sure about those non-standard ISO characters in the Turkish alphabet though. But since you’re writing that those are returned as #, looks like the same problem. There should be information available on the Internet on how to configure those fonts and character sets with Apache FOP. Once BI Publisher is out, using that as the rendering engine with APEX might be another alternative to consider, as that product will support this out of the box.
    Regards,
    Marc

  • Problem with apex listener install on Oracle Application Express 4.2.3

    I have installed Oracle Application Express 4.2.3
    Then i tried to install apex listener  Oracle APEX Listener 2.0.5
    but it dos not work.
    I ask
    It is possibile to install  WebLogic Server 12c or 11c
    and connect it to apex ??

    Hi;
    Please check Deploying Sun JRE (Native Plug-in) for Windows Clients in Oracle E-Business Suite Release 12 [ID 393931.1] and compare it wiht your steps
    Regard
    Helios

  • Update multiple rows in a dynamic table Dreamweaver CS5.5

    hello there
    i want to update multiple rows which comes from a dynamic table in Dreamweaver CS5 (a loop in php) here is my Mysql table :
    sql code
    CREATE TABLE `register`.`s_lessons` (
    `lid` int( 5 ) NOT NULL ,
    `sid` int( 9 ) NOT NULL ,
    `term` int( 5 ) NOT NULL ,
    `tid` int( 5 ) NOT NULL ,
    `point` double NOT NULL DEFAULT '0',
    PRIMARY KEY ( `lid` , `sid` , `term` ) ,
    KEY `tid` ( `tid` ) ,
    KEY `point` ( `point` )
    ) ENGINE = MYISAM DEFAULT CHARSET = utf8 COLLATE = utf8_persian_ci;
    and this is my page source code:
    php file
    <?php require_once('../Connections/register.php'); ?>
    <?php
    session_start();
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
      if (PHP_VERSION < 6) {
        $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
      $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;   
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      return $theValue;
    $colname1_rs1 = "-1";
    if (isset($_GET['term'])) {
      $colname1_rs1 = $_GET['term'];
    $colname_rs1 = "-1";
    if (isset($_GET['lid'])) {
      $colname_rs1 = $_GET['lid'];
    $colname2_rs1 = "-1";
    if (isset($_SESSION['tid'])) {
      $colname2_rs1 = $_SESSION['tid'];
    mysql_select_db($database_register, $register);
    $query_rs1 = sprintf("SELECT s_lessons.sid, s_lessons.lid, s_lessons.term, s_lessons.tid, s_lessons.point FROM s_lessons WHERE s_lessons.lid = %s AND s_lessons.term = %s AND s_lessons.tid  = %s", GetSQLValueString($colname_rs1, "int"),GetSQLValueString($colname1_rs1, "int"),GetSQLValueString($colname2_rs1, "int"));
    $rs1 = mysql_query($query_rs1, $register) or die(mysql_error());
    $row_rs1 = mysql_fetch_assoc($rs1);
    $totalRows_rs1 = mysql_num_rows($rs1);
    $count=mysql_num_rows($rs1);
    $editFormAction = $_SERVER['PHP_SELF'];
    if (isset($_SERVER['QUERY_STRING'])) {
      $editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
    for ($j = 0, $len = count($_POST['lid']); $j < $len; $j++) {
    if ((isset($_POST["MM_update"])) && ($_POST["MM_update"] == "form1")) {
      $updateSQL = sprintf("UPDATE s_lessons SET point=%s WHERE tid=%s, lid=%s, sid=%s, term=%s",
                           GetSQLValueString($_POST['point'] [$j], "double"),
                                GetSQLValueString($_SESSION['tid'], "int"),
                           GetSQLValueString($_POST['lid'] [$j], "int"),
                                GetSQLValueString($_POST['sid'] [$j], "int"),
                                GetSQLValueString($_POST['term'] [$j], "int"));
      mysql_select_db($database_register, $register);
      $Result1 = mysql_query($updateSQL, $register) or die(mysql_error());
      $updateGoTo = "student_lists.php";
      if (isset($_SERVER['QUERY_STRING'])) {
        $updateGoTo .= (strpos($updateGoTo, '?')) ? "&" : "?";
        $updateGoTo .= $_SERVER['QUERY_STRING'];
      header(sprintf("Location: %s", $updateGoTo));
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta name="keywords" content="" />
    <meta name="description" content="" />
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <title>r</title>
    <link href="styles/style.css" rel="stylesheet" type="text/css" media="screen" />
    <link href="styles/in_styles.css" rel="stylesheet" type="text/css" media="screen" />
    </head>
    <body>
    <div id="wrapper">
         <div id="header-wrapper">
         </div>
         <!-- end #header -->
         <div id="page">
              <div id="page-bgtop">
                   <div id="page-bgbtm">
                        <div id="content">
                             <div class="post">
                               <div style="clear: both;">
                            <form name="form1" id="form1" method="post" action="<?php echo $editFormAction; ?>">
                            <table border="1" align="center">
                              <tr>
                                <th>Student ID</th>
                                <th>Lesson ID</th>
                                <th>Semester</th>
                                <th>Point</th>
                              </tr>
                              <?php do { ?>
                                <tr>
                                  <td class="data"><label for="sid[]"></label>
                                  <input name="sid[]" type="text" id="sid[]" value="<?php echo $row_rs1['sid']; ?>" size="9" readonly="readonly" /></td>
                                  <td class="data"><label for="lid[]"></label>
                                  <input name="lid[]" type="text" id="lid[]" value="<?php echo $row_rs1['lid']; ?>" size="5" readonly="readonly" /></td>
                                  <td class="data"><label for="term[]"></label>
                                  <input name="term[]" type="text" id="term[]" value="<?php echo $row_rs1['term']; ?>" size="4" readonly="readonly" /></td>
                                  <td><label for="point[]"></label>
                                    <input name="point[]" type="text" id="point[]" value="<?php echo $row_rs1['point']; ?>" size="4" />                             
                              </tr>
                                <?php } while ($row_rs1 = mysql_fetch_assoc($rs1)); ?>
                            </table>
                            <p>
                              <input type="submit" name="Submit" id="Submit" value="Submit" />
                              <input type="hidden" name="MM_update" value="form1" />
                            </p>
                            </form>
                               </div>
                             </div>
                        <div style="clear: both;">
                    </div>
                        </div>
                        <!-- end #content -->
                        <!-- end #sidebar -->
                        <div style="clear: both;"> </div>
                   </div>
              </div>
         </div>
         <!-- end #page -->
    </div>
    <!-- end #footer -->
    </body>
    </html>
    <?php
    mysql_free_result($rs1);
    ?>
    All i want is that when users click on SUBMIT button values of point column in s_lessons(database table) be updated by new entries from user.
    i did my best and result with that code is :
    You  have an error in your SQL syntax; check the manual that corresponds to  your MySQL server version for the right syntax to use near ' lid=888,  sid=860935422, term=902' at line 1
    I would appreciate any idea.
    with prior thanks

    Go to the Row Properties, and in the Visibility tab, you have "Show or hide based on an expression". You can use this to write an expression that resolves to true if the row should be hidden, false otherwise.
    Additionally, in the Matrix properties you should take a look at the filters section, perhaps you can achieve what you wish to achieve through there by removing the unnecessary rows instead of just hiding them.
    It's only so much I can help you with the limited information. If you require further help, please provide us with more information such as what data are you displaying, what's the criteria to hiding rows, etc...
    Regards
    Andrew Borg Cardona

  • Interactive Report in oracle application Express

    Hello,
    I am new User in oracle application express apex . I've created interactive report .when i click download option then choose html format. but there are some
    problem .there are no header and footer in the page. how to add dynamic header and footer in the page .please help me .
    Md. Masum Manzil
    01925110083

    Try making your column definition as "Remove HTML and escape special characters".
    I tried it and it make the column appear as editable as intended and also clicking on the column heading or on the filter in the IR bar behave properly.

  • Role oracle application express

    Hi
    I am new in Oracle application express
    I have created one application in that application there are sevral form
    for example there are form like A,B,C,D,E,F
    I have created some user,but I dont want to give rights for some user like creating or editing
    for exapmle some user only shows A,B,C form he can only see this form but not updating any page
    and another user see some form like D,E,F he can create or update it like that
    In short depend on his role he can do operation..
    Please guide me

    Here is some related documentation
    http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21674/sec_authorization.htm#BABEDFGB

  • Informations about Oracle Application Express

    Hello,
    for my company I have to do a complete comparison of four tools which can be used for creation of GUIs:
    - Oracle Application Framework
    - Oracle Forms
    - Oracle Application Express
    - Microsoft .NET Framework
    Here in this topic I search for some facts about the ApEx:
    - How does it work (language, tools, ...)
    - Performance vs. the other three
    - Integretation into E-Business Suite
    - Possitbilites of the GUI
    - Screenshots, Links, etc.
    thx a lot

    The goal is to build a GUI where you can handle Tabledate, etc. Well you can certainly very easily do that with APEX.
    As for the disadvantages/advantages, what I would suggest is -
    Option 1
    Use -
    1) OTN (plus other Vendors websites)
    2) OTN Forums/Google Groups etc
    3) Google to find other sources (but with extreme care to validate/verify your sources)
    To research the information on your own. Unless you have experience of the products yourself, then this area is fraught with potential problems, as you are effectively quoting information that you have not verified yourself (hence the need to be very satisified that you trust the source of the information).
    Option 2
    Contact a respective expert in each of the technologies asking them to cite advantages and disadvantages of the tool they use.
    Again, there is a potential for 'bias' here, so you need to make sure that your 'source' is objective enough to be able to provide realistic disadvantages of the tool (at least in the context of your question)
    Option 3
    By far the best option in my view -
    Try and find someone who has used both/some/all of the tools you're trying to compare. Once again it needs to be someone who's opinion you can trust (otherwise what is the point?).
    The most difficult thing about having 2 people comparing products A and B, is that the person extolling the virtues of product A might not know that product B actually makes certain things easier and vice-versa. By having someone who has used BOTH products discuss the pros and cons then you get a much more 'real-world usability' view of the benefits and drawbacks.
    Just my thoughts, hope they help.
    John.

  • Update Multiple Rows using Row Selector

    Hi,
    I want to update multiple rows using a tabular form with row selector, and an item in another region of the page, using an update expression and a button.
    The syntax would be like this:
    update MY_TABLE set UPDATABLE_COLUMN = :P10_NEW_VALUE where {row selector = true}
    What is the syntax for the WHERE clause, anyone knows? In the manual there is no information at all for doing this.
    PD. I added the row selector after creating the form, so I don't have any wizard-created MRU processes in the page.
    HTMLDB version is 1.6
    Thanks.

    Hi,
    I want to update multiple rows using a tabular form with row selector, and an item in another region of the page, using an update expression and a button.
    The syntax would be like this:
    update MY_TABLE set UPDATABLE_COLUMN = :P10_NEW_VALUE where {row selector = true}
    What is the syntax for the WHERE clause, anyone knows? In the manual there is no information at all for doing this.
    PD. I added the row selector after creating the form, so I don't have any wizard-created MRU processes in the page.
    HTMLDB version is 1.6
    Thanks.

  • Updating multiple rows with different values

    Hi!
    I have a problem. I need to update more then 1000 rows with different values. How can I do it?
    For exsample i have table:
    id; color, date,
    1 red
    2 green
    3 white
    I need to update date field.
    Update table
    set date='01.02.03'
    where id=1
    Update table
    set date='01.03.03'
    where id=2
    Maybe there is way how to update multiple rows at one query?
    Sorry for my bad english.
    Thanks!

    Hi,
    You can try this
    UPDATE TABLE SET DATE = CASE
                        WHEN ID = 1 THEN TO_DATE('01-02-03','DD-MM-RR')
                        WHEN ID = 2 THEN TO_DATE('01-03-03','DD-MM-RR')
                        ENDcheers
    VT

  • Want to update multiple rows of the report but getting a bug.

    hi,
    I am trying to update multiple rows of a report.For that I have created a teport with dynamic checkbox generated using ---HTMLDB_ITEM.CHECKBOX(1,utt.trouble_ticket_id) " "----.Checkboxes are rendered perfectly on the report.
    but when I tried to update the selected rows of the report as given in the documentation
    begin
    :P16_priority:=htmldb_application.G_F01.count;
    for i in 1..htmldb_application.G_F01.count
    loop
    update umanage_trouble_ticket set severity =:P16_priority where
    trouble_ticket_id = htmldb_application.G_F01(i);
    end loop;     
    end;
    I found that all the rows are updated.not only selected rows.
    and the count it gives =no of rows returned + no of rows selected.
    Please help me regarding this.
    thanx.
    BHARAT

    Hi Bernhard,
    I think that u didnt get y problem.
    When I take the value from "htmldb_application.g_f01(i)" then it should return id's of rows that are checked but when I do that it returns id's of all the rows.So I am not able to update only checked rows.
    from id's of rows i mean value provided when generating checkboxes through query.
    htmldb_item.checkbox(1,trouble_ticket_id) " "
    I am approching to the solution as specified in the documentation. "Adding check boxes to each row in a report".
    but still cant find any solution.
    thanx that u showed some intrest in my problem.
    If u can get the solution reply soon.
    Regards
    BHARAT

  • Do you use Oracle Application Express (APEX) with EBS?

    I am conducting a short survey to determine how you integrate Oracle Application Express with eBusiness Suite. Please take a few minutes to fill out the survey:
    http://apex.oracle.com/pls/otn/f?p=54654:1:0
    {We will not share information with anyone except with your explicit permission}
    We believe that there are a large number of eBusiness Suite customers that are using Application Express in various ways so we are trying to quantify that and get some further information.
    This is all part of a broader effort we are currently undertaking working closely with various people from the eBusiness Suite Development Team.
    This survey is very important to us so please take the time to complete the survey if you use Application Express with eBusiness Suite - It is only 1 page long.
    Thanks,
    David

    Thanks for your reply.
    I did some more investigation to check what could cause this to happene, whereby the report toatal is not displayed at all for few selected paramters.
    What i could analyse was that the records returned were more than 50 (Standard Setting) , which however could not fit into the page, along with that the pagination scheme was not selected. I had to make 2 changes to the Layout of the report
    Pagination Scheme : Row Ranges X to Y(with Next and Previous Links)
    Number of Rows : 500
    This worked for me as the displayed could not be seen on the next page with Previous and next links on the report output.
    Thanks,
    Dips

  • Unable Logging in to Oracle Application Express Administration Services

    I am new for DB. Installed Oracle XE, followed the instruction "Logging in to Oracle Application Express Administration Services", I can not find the login page:
    http://127.0.0.1:7777/pls/apex/apex_admin
    I work on the PC in which XE installed.
    Where are these two files
    ORACLE_BASE\ORACLE_HOME\install\portlist.ini
    ORACLE_BASE\ORACLE_HOME\Apache\Apache\conf\httpd.conf
    I did a search, can't find them.
    Any help welcome.
    Thanks.

    The default port for the Apex webserver is 8080, not 7777.
    To access the XE Database GUI from the Start menu, select Programs (or All Programs), then Oracle Database 10g Express Edition, and then Go to Database Home Page. (I'm assuming your on Windows)
    Or try: http://localhost:8080/apex in your browser.
    The files you mention relate to Apache web server. Oracle XE does not include a Apache, it's web server is built into the database. Are you sure you're following the right documentation? See http://www.oracle.com/pls/xe102/homepage
    Hope this helps.

Maybe you are looking for