Read the BLOB and insert data into a table

Hi all

Let us examine below on Oracle DB 12 c:

create table xx_test3 (c blob);

insert into xx_test3 (c) values (utl_raw.cast_to_raw(
'azertyuiop,qsdfghjklm,wxcvbn'));


create table xx_target (col1 varchar2(50));



Can someone guide me how to read the data and insert it into the xx_target table?

Necessary result is:


select * from xx_target;


COL1                                              

--------------------------------------------------
azertyuiop                                        
qsdfghjklm                                        
wxcvbn                                            

3 rows selected.




Thanks in advance,

Stoyanov.

insert into xx_target (col1)

with the data as)

Select utl_raw.cast_to_varchar2 (dbms_lob.substr (c, 32000, 1)) CBC

of xx_test3

)

Select regexp_substr (CBC, ' [^,] +', 1, level)

from the data

connect by level<= regexp_count(src,="" ',')="" +="">

Tags: Database

Similar Questions

  • Doubt about inserting data into a table

    Hi all, when I try to insert data into a table through an anonymous block, the pl/sql block runs successfully, but the data are not get inserted. Can someone please tell me where I am doing wrong?
    SQL> DECLARE
      2
      3  V_A NUMBER;
      4
      5  V_B NUMBER;
      6
      7  v_message varchar2(25);
      8
      9
     10  BEGIN
     11
     12
     13  select regal.regal_inv_landed_cost_seq.NEXTVAL into V_A from dual ;
     14
     15  select regal.regal_inv_landed_cost_seq.currval into V_B from dual ;
     16
     17  INSERT INTO rcv_transactions_interface
     18  (
     19               INTERFACE_TRANSACTION_ID,
     20               HEADER_INTERFACE_ID,
     21               GROUP_ID,
     22               TRANSACTION_TYPE,
     23               TRANSACTION_DATE,
     24               PROCESSING_STATUS_CODE,
     25               PROCESSING_MODE_CODE,
     26               TRANSACTION_STATUS_CODE,
     27               QUANTITY,
     28               LAST_UPDATE_DATE,
     29               LAST_UPDATED_BY,
     30               CREATION_DATE,
     31               CREATED_BY,
     32               RECEIPT_SOURCE_CODE,
     33               DESTINATION_TYPE_CODE,
     34               AUTO_TRANSACT_CODE,
     35               SOURCE_DOCUMENT_CODE,
     36               UNIT_OF_MEASURE,
     37               ITEM_ID,
     38               UOM_CODE,
     39               EMPLOYEE_ID,
     40               SHIPMENT_HEADER_ID,
     41               SHIPMENT_LINE_ID,
     42               TO_ORGANIZATION_ID,
     43               SUBINVENTORY,
     44               FROM_ORGANIZATION_ID,
     45               FROM_SUBINVENTORY
     46  )
     47
     48  SELECT
     49       regal.regal_inv_landed_cost_seq.nextval,      --Interface_transaction_
    id
     50       V_A,                                          --Header Interface ID
     51       V_B,                                          --Group ID
     52       'Ship',                                       --Transaction Type
     53       sysdate,                                      --Transaction Date
     54       'PENDING',                                    --Processing Status Code
    
     55       'BATCH',                                      --Processing Mode Code
     56       'PENDING',                                    --Transaction Status Cod
    e
     57       lc.quantity_received,                          --Quantity
     58       lc.last_update_date,                          --last update date
     59       lc.last_updated_by,                           --last updated by
     60       sysdate,                                      --creation date
     61       lc.created_by,                                --created by
     62       'INVENTORY',                                  --Receipt source Code
     63       'INVENTORY',                                  --Destination Type Code
     64       'DELIVER' ,                                    --AUT Transact Code
     65       'INVENTORY',                                  --Source Document Code
     66        msi.primary_uom_code ,                       --Unit Of Measure
     67        msi.inventory_item_id,                        --Item ID
     68        msi.primary_unit_of_measure,                  --UOM COde
     69        fnd.user_id,
     70        V_A,                                         --Shipment Header ID
     71        V_B,                                         --SHipment Line ID
     72        82,                                           --To Organization ID
     73        'Brooklyn',                                     --Sub Inventory ID
     74        81,                                            --From Organization
     75        'Vessel'                                       --From Subinventory
     76
     77    FROM
     78       regal.regal_inv_landed_cost_tab lc,
     79       fnd_user fnd,
     80       mtl_system_items msi
     81
     82    WHERE
     83       lc.organization_id = msi.organization_id
     84       AND  lc.inventory_item_id = msi.inventory_item_id
     85       AND  lc.created_by = fnd.created_by;
     86
     87  commit;
     88  v_message := SQL%ROWCOUNT;
     89  dbms_output.put_line('v_message');
     90  END;
     91  /
    v_message
    
    PL/SQL procedure successfully completed.
    SQL> select * from rcv_transactions_interface;
    
    no rows selected
    Thanks in advance!

    There is no problem with inserting data!
    Only there is no data! This means that your select statement retrieves no rows.
    You can see the output of your program (0). This means that there where no line in the result set.

    Please check the output of your tax return independently:

    SELECT
    --        regal.regal_inv_landed_cost_seq.nextval,      --Interface_transaction_id
     --       V_A,                                          --Header Interface ID
    --        V_B,                                          --Group ID
            'Ship',                                       --Transaction Type
            sysdate,                                      --Transaction Date
            'PENDING',                                    --Processing Status Code
            'BATCH',                                      --Processing Mode Code
            'PENDING',                                    --Transaction Status Code
            lc.quantity_received,                          --Quantity
            lc.last_update_date,                          --last update date
            lc.last_updated_by,                           --last updated by
            sysdate,                                      --creation date
            lc.created_by,                                --created by
            'INVENTORY',                                  --Receipt source Code
            'INVENTORY',                                  --Destination Type Code
            'DELIVER' ,                                    --AUT Transact Code
            'INVENTORY',                                  --Source Document Code
             msi.primary_uom_code ,                       --Unit Of Measure
             msi.inventory_item_id,                        --Item ID
             msi.primary_unit_of_measure,                  --UOM COde
             fnd.user_id,
      --       V_A,                                         --Shipment Header ID
    --         V_B,                                         --SHipment Line ID
             82,                                           --To Organization ID
             'Brooklyn',                                     --Sub Inventory ID
             81,                                            --From Organization
             'Vessel'                                       --From Subinventory
         FROM
            regal.regal_inv_landed_cost_tab lc,
            fnd_user fnd,
            mtl_system_items msi
         WHERE
            lc.organization_id = msi.organization_id
            AND  lc.inventory_item_id = msi.inventory_item_id
            AND  lc.created_by = fnd.created_by;
    

    Published by: hm on 13.10.2011 23:19

    I removed the references of the sequence and the variables V_A and YaeUb.
    BTW: Why do you want to include V_A and YaeUb in two different columns?

    The use of sequences in your code seems a bit strange to me. But this has nothing to do with your question.

  • get the name of a directory file and insert it into a table

    Hello

    I have a requirement, I need to read the name of a Linux directory file and enter the file name in a variable,

    After that, I need to insert this file name in a table.

    EX: is it a file1.txt in Yearbook of the CBA, and I read that 'file name' in the v_file_name variable and I'm going to insert this file name in a table.

    Hello

    I think you've got your request of replied by Chantal.
    Shoul you have a kind of intelience in the name of the file itself so that ODI retrieves the correct file and insert into the table.

    Thank you
    Fati

  • 1 form, 2 actions to do: check the captcha and put data into the database

    Hello

    I am trying to create a registration page that puts the data entered by the user in a database. That part works: there is a connection to the database and the information is placed in the database correctly. To avoid spam, I would add captcha on the form. I've been looking at the possibilities of reCaptcha, and the result is the following: the image appears correctly and the image is renewed when you click on the link. But the problem is that this captcha can be controlled without adding "verify.php" action to the form. How can I, in Dreamweaver, add a second action to the form? In other words, what code should I replace the part "$editFormAction"? Or I think entirely in a bad way? This is the first time I use Dreamweaver, I also never worked with php before.

    Here is the code I have now (I'm sorry guys but I'm Dutch ):

    <?php require_once('Connections/Klantenlijst.php'); ?>
    <?php
    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;
    }
    }
    // *** Redirect if username exists
    $MM_flag="MM_insert";
    if (isset($_POST[$MM_flag])) {
      $MM_dupKeyRedirect="www.sint-jorishoeve.be";
      $loginUsername = $_POST['gebruikersnaam'];
      $LoginRS__query = sprintf("SELECT Gebruikersnaam FROM klantenlijst WHERE Gebruikersnaam=%s", GetSQLValueString($loginUsername, "text"));
      mysql_select_db($database_Klantenlijst, $Klantenlijst);
      $LoginRS=mysql_query($LoginRS__query, $Klantenlijst) or die(mysql_error());
      $loginFoundUser = mysql_num_rows($LoginRS);
      //if there is a row in the database, the username was found - can not add the requested username
      if($loginFoundUser){
        $MM_qsChar = "?";
        //append the username to the redirect page
        if (substr_count($MM_dupKeyRedirect,"?") >=1) $MM_qsChar = "&";
        $MM_dupKeyRedirect = $MM_dupKeyRedirect . $MM_qsChar ."requsername=".$loginUsername;
        header ("Location: $MM_dupKeyRedirect");
        exit;
      }
    }
    $editFormAction = $_SERVER['PHP_SELF'];
    if (isset($_SERVER['QUERY_STRING'])) {
      $editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
    }
    if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "registreren")) {
      $insertSQL = sprintf("INSERT INTO klantenlijst (`Voornaam ruiter`, `Familienaam ruiter`, `Geboortedatum dag`, `Geboortedatum maand`, `Geboortedatum jaar`, `E-mailadres 1`, `Telefoon 1`, Gebruikersnaam, Paswoord) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s)",
                           GetSQLValueString($_POST['voornaam_ruiter'], "text"),
                           GetSQLValueString($_POST['voornaam_ruiter'], "text"),
                           GetSQLValueString($_POST['geboortedatum_ddag'], "int"),
                           GetSQLValueString($_POST['geboortedatum_maand'], "text"),
                           GetSQLValueString($_POST['geboortedatum_jaar'], "int"),
                           GetSQLValueString($_POST['e-mailadres_1'], "text"),
                           GetSQLValueString($_POST['telefoon'], "int"),
                           GetSQLValueString($_POST['gebruikersnaam'], "text"),
                           GetSQLValueString($_POST['paswoord'], "text"));
      mysql_select_db($database_Klantenlijst, $Klantenlijst);
      $Result1 = mysql_query($insertSQL, $Klantenlijst) or die(mysql_error());
      $insertGoTo = "aanmelden.php";
      if (isset($_SERVER['QUERY_STRING'])) {
        $insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?";
        $insertGoTo .= $_SERVER['QUERY_STRING'];
      }
      header(sprintf("Location: %s", $insertGoTo));
    }
    if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "registratie")) {
      $insertSQL = sprintf("INSERT INTO klantenlijst (`Voornaam ruiter`, `Familienaam ruiter`, `Geboortedatum dag`, `Geboortedatum maand`, `Geboortedatum jaar`, `Opmerkingen / Medisch`, `Voornaam contactpersoon 1`, `Familienaam contactpersoon 1`, `Contactpersoon 1 is`, `Voornaam contactpersoon 2`, `Familienaam contactpersoon 2`, `Contactpersoon 2 is`, `E-mailadres 1`, `E-mailadres 2`, `Telefoon 1`, `Telefoon 2`, `Telefoon 3`, Opmerkingen, Gebruikersnaam, Paswoord) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)",
                           GetSQLValueString($_POST['voornaam_ruiter'], "text"),
                           GetSQLValueString($_POST['familienaam_ruiter'], "text"),
                           GetSQLValueString($_POST['geboortedatum_dag'], "int"),
                           GetSQLValueString($_POST['geboortedatum_maand'], "text"),
                           GetSQLValueString($_POST['geboortedatum_jaar'], "date"),
                           GetSQLValueString($_POST['opmerkingen_ruiter'], "text"),
                           GetSQLValueString($_POST['voornaam_contactpersoon_1'], "text"),
                           GetSQLValueString($_POST['familienaam_contactpersoon_1'], "text"),
                           GetSQLValueString($_POST['contactpersoon_1_is'], "text"),
                           GetSQLValueString($_POST['voornaam_contactpersoon_2'], "text"),
                           GetSQLValueString($_POST['familienaam_contactpersoon_2'], "text"),
                           GetSQLValueString($_POST['contactpersoon_2_is'], "text"),
                           GetSQLValueString($_POST['emailadres_1'], "text"),
                           GetSQLValueString($_POST['emailadres_2'], "text"),
                           GetSQLValueString($_POST['telefoon_1'], "int"),
                           GetSQLValueString($_POST['telefoon_2'], "int"),
                           GetSQLValueString($_POST['telefoon_3'], "int"),
                           GetSQLValueString($_POST['opmerkingen_contactpersoon'], "text"),
                           GetSQLValueString($_POST['gebruikersnaam'], "text"),
                           GetSQLValueString($_POST['paswoord'], "text"));
      mysql_select_db($database_Klantenlijst, $Klantenlijst);
      $Result1 = mysql_query($insertSQL, $Klantenlijst) or die(mysql_error());
      $insertGoTo = "http://www.sint-jorishoeve.be";
      if (isset($_SERVER['QUERY_STRING'])) {
        $insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?";
        $insertGoTo .= $_SERVER['QUERY_STRING'];
      }
      header(sprintf("Location: %s", $insertGoTo));
    }
    mysql_select_db($database_Klantenlijst, $Klantenlijst);
    $query_Contactenlijst = "SELECT * FROM klantenlijst";
    $Contactenlijst = mysql_query($query_Contactenlijst, $Klantenlijst) or die(mysql_error());
    $row_Contactenlijst = mysql_fetch_assoc($Contactenlijst);
    $totalRows_Contactenlijst = mysql_num_rows($Contactenlijst);
    ?>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>Manege Sint-Jorishoeve</title>
    <style type="text/css">
    <!--
    body,td,th {
     font-family: Verdana, Geneva, sans-serif;
     font-size: 10px;
     color: #300;
     font-weight: bold;
    }
    body {
     background-color: #FF9;
     font-family: Verdana, Geneva, sans-serif;
     font-size: 12px;
     font-style: normal;
     line-height: normal;
     font-weight: normal;
     font-variant: normal;
     text-transform: none;
     color: #300;
    }
    a {
     font-family: Verdana, Geneva, sans-serif;
     font-size: 12px;
     color: #F90;
    }
    a:visited {
     color: #F90;
    }
    a:hover {
     color: #F90;
    }
    a:active {
     color: #F90;
    }
    h1,h2,h3,h4,h5,h6 {
     font-family: Verdana, Geneva, sans-serif;
    }
    h1 {
     font-size: 14px;
     color: #300;
    }
    -->
    </style>
    <script src="SpryAssets/SpryValidationPassword.js" type="text/javascript"></script>
    <script src="SpryAssets/SpryValidationTextField.js" type="text/javascript"></script>
    <script src="SpryAssets/SpryValidationSelect.js" type="text/javascript"></script>
    <script src="SpryAssets/SpryValidationConfirm.js" type="text/javascript"></script>
    <script src="SpryAssets/SpryValidationCheckbox.js" type="text/javascript"></script>
    <script src="SpryAssets/SpryValidationTextarea.js" type="text/javascript"></script>
    <script src="SpryAssets/SpryEffects.js" type="text/javascript"></script>
    <script src="SpryAssets/SpryTooltip.js" type="text/javascript"></script>
    <link href="SpryAssets/SpryValidationPassword.css" rel="stylesheet" type="text/css">
    <link href="SpryAssets/SpryValidationTextField.css" rel="stylesheet" type="text/css">
    <link href="SpryAssets/SpryValidationSelect.css" rel="stylesheet" type="text/css">
    <link href="SpryAssets/SpryValidationConfirm.css" rel="stylesheet" type="text/css">
    <link href="SpryAssets/SpryValidationCheckbox.css" rel="stylesheet" type="text/css">
    <link href="SpryAssets/SpryValidationTextarea.css" rel="stylesheet" type="text/css">
    <script type="text/javascript">
    <!--
    function MM_effectHighlight(targetElement, duration, startColor, endColor, restoreColor, toggle)
    {
     Spry.Effect.DoHighlight(targetElement, {duration: duration, from: startColor, to: endColor, restoreColor: restoreColor, toggle: toggle});
    }
    function MM_showHideLayers() { //v9.0
      var i,p,v,obj,args=MM_showHideLayers.arguments;
      for (i=0; i<(args.length-2); i+=3) 
      with (document) if (getElementById && ((obj=getElementById(args[i]))!=null)) { v=args[i+2];
        if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
        obj.visibility=v; }
    }
    //-->
    </script>
    <link href="SpryAssets/SpryTooltip.css" rel="stylesheet" type="text/css">
    </head>
    <body>
    <h1>Registreren</h1>
    <p><em>Let op: Dit is een registratie voor een volledig nieuwe account met nieuwe gebruikersnaam en paswoord.</em><em></em></p>
    <p><em>Indien u een persoon aan uw account wilt toevoegen (met dezelfde gebruikersnaam), doe dit via 'Mijn gegevens'.</em> </p>
    <p> </p>
    <script type="text/javascript">
    var RecaptchaOptions = {
     lang : 'nl',       
     theme : 'custom',
     custom_theme_widget: 'recaptcha_widget'
     };
        </script>
    <form action="<?php echo $editFormAction; ?>" method="POST" enctype="application/x-www-form-urlencoded" name="registratie" id="registratie" onSubmit="MM_showHideLayers('registratie','','hide')">
      <p><strong>GEGEVENS VAN DE TE REGISTREREN PERSOON</strong></p>
      <p>Voornaam*:
        <span id="sprytextfield9">
        <label>
          <input name="voornaam_ruiter" type="text" id="voornaam_ruiter" size="25" maxlength="50">
        </label>
      <span class="textfieldRequiredMsg">Dit veld is verplicht in te vullen!</span><span class="textfieldMaxCharsMsg">Hier kan u max. 50 karakters invullen!</span><span class="textfieldMinCharsMsg">Dit veld is verplicht in te vullen!</span></span> </p>
      <p>Familienaam*: <span id="sprytextfield10">
        <label>
          <input name="familienaam_ruiter" type="text" id="familienaam_ruiter" size="25" maxlength="50">
        </label>
        <span class="textfieldMaxCharsMsg">Hier kan u max. 50 karakters invullen!</span></span> </p>
      <p>Geboortedatum*: 
        <span id="sprytextfield11">
        <label>
          <input name="geboortedatum_dag" type="text" id="geboortedatum_dag" value="00" size="4" maxlength="2">
        </label>
        <span class="textfieldInvalidFormatMsg">Gebruik het aangegeven formaat aub.!</span><span class="textfieldMinCharsMsg">Gebruik het aangegeven formaat!</span><span class="textfieldMaxCharsMsg">Dit is geen geldige dag van de maand!</span><span class="textfieldMinValueMsg">Dit is geen geldige dag van de maand!</span><span class="textfieldMaxValueMsg">Dit is geen geldige dag van de maand!</span></span><span id="spryselect2">
        <label>
          <select name="geboortedatum_maand" id="geboortedatum_maand">
            <option selected> </option>
            <option value="Januari">Januari</option>
            <option value="Februari">Februari</option>
            <option value="Maart">Maart</option>
            <option value="April">April</option>
            <option value="Mei">Mei</option>
            <option value="Juni">Juni</option>
            <option value="Juli">Juli</option>
            <option value="Augustus">Augustus</option>
            <option value="September">September</option>
            <option value="Oktober">Oktober</option>
            <option value="November">November</option>
            <option value="December">December</option>
          </select>
        </label>
    <span class="selectRequiredMsg">Dit veld is verplicht in te vullen!</span></span><span id="sprytextfield12">
    <label>
      <input name="geboortedatum_jaar" type="text" id="geboortedatum_jaar" value="0000" size="8" maxlength="4">
    </label>
    <span class="textfieldRequiredMsg">Dit veld is verplicht in te vullen!</span><span class="textfieldInvalidFormatMsg">Dit is geen geldig geboortejaar!</span><span class="textfieldMinCharsMsg">Gebruik het aangegeven formaat aub.!</span><span class="textfieldMaxCharsMsg">Dit is geen geldig geboortejaar!</span><span class="textfieldMinValueMsg">Dit is geen geldig geboortejaar!</span><span class="textfieldMaxValueMsg">Dit is geen geldig geboortejaar!</span></span></p>
      <p><span id="sprytextfield13">
        <label>Opmerkingen / Medisch te weten:<span class="textfieldMaxCharsMsg">Hier mag u max. 100 karakters invullen!</span></label>
    </span>
        <input name="opmerkingen_ruiter" type="text" id="opmerkingen_ruiter" size="50" maxlength="100">
      </p>
      <p> </p>
      <p><strong>GEGEVENS VAN DE CONTACTPERSOON</strong></p>
      <p>Is de contactpersoon de te registreren persoon zelf *?
        <span id="spryselect4">
        <label>
          <select name="ja_nee" id="ja_nee">
            <option selected> </option>
            <option value="Ja">Ja</option>
            <option value="Nee">Nee</option>
          </select>
        </label>
      <span class="selectRequiredMsg">Dit veld is verplicht in te vullen!</span></span> </p>
      <p><em>Indien nee, specifiëer wie de contactpersoon is / contactpersonen zijn:</em></p>
      <p><strong>Contactpersoon 1: </strong></p>
      <p><em>Voornaam:     <span id="sprytextfield16">
        <input name="voornaam_contactpersoon_1" type="text" id="voornaam_contactpersoon_1" size="25" maxlength="50">
        <span class="textfieldMinCharsMsg">Dit is geen geldige voornaam!</span><span class="textfieldMaxCharsMsg">Hier mag u max. 50 karakters invullen!</span></span><span>
        <label><span class="textfieldMinCharsMsg">Minimum number of characters not met.</span><span class="textfieldMaxCharsMsg">Exceeded maximum number of characters.</span></label>
        </span> </em></p>
      <p><em>Familienaam: <span id="sprytextfield15">
        <label>
          <input type="text" name="familienaam_contactpersoon_1" id="familienaam_contactpersoon_1">
        </label>
      <span class="textfieldMinCharsMsg">Dit is geen geldige familienaam!</span><span class="textfieldMaxCharsMsg">Hier mag u max. 50 karakters invullen!</span></span> </em></p>
      <p><em>Contactpersoon 1 is:
          <span id="spryselect3">
          <label>
            <select name="contactpersoon_1_is" id="contactpersoon_1_is">
              <option selected> </option>
              <option value="Ouder">Ouder</option>
              <option value="Andere familie">Andere familie</option>
              <option value="Geen familie">Geen familie</option>
            </select>
          </label>
    </span> </em></p>
      <p><strong>Contactpersoon 2:</strong></p>
      <p><em>Voornaam: <span id="sprytextfield7">
        <label>
          <input name="voornaam_contactpersoon_2" type="text" id="voornaam_contactpersoon_2" size="25" maxlength="50">
          <span class="textfieldMinCharsMsg">Dit is geen geldige voornaam!</span><span class="textfieldMaxCharsMsg">Hier mag u max. 50 karakters invullen!</span></label>
    </span> </em></p>
      <p><em>Familienaam: <span id="sprytextfield8">
        <label>
          <input name="familienaam_contactpersoon_2" type="text" id="familienaam_contactpersoon_2" size="25" maxlength="50">
          <span class="textfieldMinCharsMsg">Dit is geen geldige familienaam!</span><span class="textfieldMaxCharsMsg">Hier mag u max. 50 karakters invullen!</span></label>
    </span> </em></p>
      <p><em>Contactpersoon 2 is:
    <span id="spryselect1">
        <label></label>
        </span><span id="spryselect5">
        <select name="contactpersoon_2_is" id="contactpersoon_2_is">
          <option selected> </option>
          <option value="Ouder">Ouder</option>
          <option value="Andere familie">Andere familie</option>
          <option value="Geen familie">Geen familie</option>
        </select>
    </span><span>  <span class="selectRequiredMsg">Please select an item.</span></span> </em></p>
      <p> </p>
      <p>E-mailadres 1 *:
        <span id="sprytextfield6">
        <label>
          <input name="emailadres_1" type="text" id="emailadres_1" size="25" maxlength="50">
          <strong><em>      Kijk dit aub. na op typfouten!
        </em></strong></label>
        <em><strong><span class="textfieldInvalidFormatMsg">Dit is geen geldig e-mailadres!</span><span class="textfieldRequiredMsg">Dit veld is verplicht in te vullen!</span><span class="textfieldMinCharsMsg">Dit is geen geldig e-mailadres!</span><span class="textfieldMaxCharsMsg">Hier mag u max. 50 karakters invullen!</span></strong></em></span></p>
      <p>E-mailadres 2: 
        <span id="sprytextfield5">
        <label>
          <input type="text" name="emailadres_2" id="emailadres_2">
        </label>
      <span class="textfieldInvalidFormatMsg">Dit is geen geldig e-mailadres!</span><span class="textfieldMinCharsMsg">Dit is geen geldig e-mailadres!</span><span class="textfieldMaxCharsMsg">Hier mag u max. 50 karakters invullen!</span></span> </p>
      <p>Telefoon / GSM 1 *: 
        <span id="sprytextfield4">
        <label>
          <input name="telefoon_1" type="text" id="telefoon_1" size="20" maxlength="10">
        <em><strong>Kijk dit aub.   na op typfouten!</strong></em> </label>
        <span class="textfieldRequiredMsg">Dit veld is verplicht in te vullen!</span><span class="textfieldInvalidFormatMsg">Typ het telefoonnummer zonder streepjes of spaties in!</span><span class="textfieldMinValueMsg">Dit is geen geldig telefoonnummer!</span><span class="textfieldMaxValueMsg">Dit is geen geldig telefoonnummer!</span><span class="textfieldMinCharsMsg">Dit is geen geldig telefoonnummer!</span><span class="textfieldMaxCharsMsg">Typ het telefoonnummer zonder streepjes of spaties!</span></span></p>
      <p>Telefoon / GSM 2: 
        <span id="sprytextfield17">
        <label>
          <input name="telefoon_2" type="text" id="telefoon_2" size="20" maxlength="10">
        </label>
      <span class="textfieldInvalidFormatMsg">Typ het telefoonnummer zonder streepjes of spaties!</span><span class="textfieldMinValueMsg">Dit is geen geldig telefoonnummer!</span><span class="textfieldMaxValueMsg">Dit is geen geldig telefoonnummer!</span><span class="textfieldMaxCharsMsg">Typ het telefoonnummer zonder streepjes of spaties!</span><span class="textfieldMinCharsMsg">Dit is geen geldig telefoonnummer!</span></span> </p>
      <p>Telefoon / GSM 3: 
        <span id="sprytextfield3">
        <label>
          <input name="telefoon_3" type="text" id="telefoon_3" size="20" maxlength="10">
        </label>
      <span class="textfieldInvalidFormatMsg">Typ het telefoonnummer zonder streepjes of spaties!</span><span class="textfieldMinValueMsg">Dit is geen geldig telefoonnummer!</span><span class="textfieldMaxValueMsg">Dit is geen geldig telefoonnummer!</span><span class="textfieldMinCharsMsg">Dit is geen geldig telefoonnummer!</span><span class="textfieldMaxCharsMsg">Typ het telefoonnummer zonder streepjes of spaties!</span></span> </p>
      <p>Opmerkingen ivm. contactpersoon: 
        <span id="sprytextfield2">
        <label>
          <input name="opmerkingen_contactpersoon" type="text" id="opmerkingen_contactpersoon" size="50" maxlength="100">
        </label>
        </span> </p>
      <p> </p>
      <p><strong>ACCOUNTGEGEVENS</strong></p>
      <p>Kies een gebruikersnaam *: 
        <span id="sprytextfield1">
        <label>
          <input name="gebruikersnaam" type="text" id="gebruikersnaam" size="25" maxlength="50">
        <em><strong>Kijk aub.  na op typfouten!</strong></em> </label>
        </span></p>
      <p><em>De gebruikersnaam moet tussen 6 en 50 karakters lang zijn en mag zowel letters als cijfers omvatten. </em></p>
      <p><em>Tip: gebruik uw e-mailadres als gebruikersnaam. Let op: de gebruikersnaam is hoofdlettergevoelig!</em></p>
      <p>Kies een paswoord *: 
        <span id="sprypassword2">
        <label>
          <input name="paswoord" type="password" id="paswoord" size="20" maxlength="15">
        </label>
      <span class="passwordRequiredMsg">Dit veld is verplicht in te vullen!</span><span class="passwordMinCharsMsg">Het paswoord moet min. 6 karakters lang zijn!</span><span class="passwordMaxCharsMsg">Het paswoord mag max. 15 karakters lang zijn!</span><span class="passwordInvalidStrengthMsg">Het paswoord voldoet niet aan de voorwaarden!</span></span> </p>
      <p>Typ het paswoord opnieuw ter verificatie *: <span id="spryconfirm1">
        <label>
          <input type="password" name="paswoord_verificatie" id="paswoord_verificatie">
        </label>
      <span class="confirmRequiredMsg">Dit veld is verplicht in te vullen!</span><span class="confirmInvalidMsg">De paswoorden komen niet overeen!</span></span></p>
      <p><em>Het paswoord moet tussen 6 en 15 karakters lang zijn, moet zowel letters als cijfers bevatten en mag geen</em></p>
      <p><em>speciale tekens bevatten. </em><em>Let op: het paswoord is hoofdlettergevoelig!</em></p>
      <p><em>Tip: schrijf het paswoord ergens op alvorens </em><em>het formulier te verzenden zodat u het niet vergeet. </em></p>
      <p> </p>
      <p>
        <span id="sprycheckbox1">
        <label>
          <input name="akkoord_privacy" type="checkbox" id="akkoord_privacy" value="akkoord">
        </label>
      <span class="checkboxRequiredMsg">Verplicht aan te vinken!.</span></span> Ik bevestig dat zowel de te registreren persoon als de contactpersoon het <a href="http://www.sint-jorishoeve.be/privacy.htm" target="_blank">Privacy Statement</a> gelezen </p>
      <p>hebben en hiermee akkoord gaan. </p>
      <p>
        <?php 
      require_once('recaptchalib.php'); 
      $publickey = "6Lce_ckSAAAAAAGhklRAs1KsXJ7-YxZAaoTldLyQ"; // you got this from the signup page 
      echo recaptcha_get_html($publickey);
      ?>
      <div id="recaptcha_widget" style="display:none">
       <div id="recaptcha_image"></div>
        <div class="recaptcha_only_if_incorrect_sol" style="color:red">Woorden komen niet overeen. Probeer opnieuw.</div>
        <span class="recaptcha_only_if_image">Typ de woorden in de afbeelding over *:</span>
        <span class="recaptcha_only_if_audio">Typ cijfers die u hoort:</span>
        <input type="text" id="recaptcha_response_field" name="recaptcha_response_field" /><div>
        <a href="javascript:Recaptcha.reload()">Ik kan de woorden niet lezen, vernieuw de afbeelding.</a></div>
      </div>
      <script type="text/javascript" src="http://www.google.com/recaptcha/api/challenge?k=6Lce_ckSAAAAAAGhklRAs1KsXJ7-YxZAaoTldLyQ">
      </script>
      <noscript>
      <iframe src="http://www.google.com/recaptcha/api/noscript?k=6Lce_ckSAAAAAAGhklRAs1KsXJ7-YxZAaoTldLyQ" height="300" width="500" frameborder="0">
      </iframe>
      <span id="sprytextarea2">
      <textarea name="recaptcha_challenge_field" cols="40" rows="3" id="recaptcha_challenge_field"></textarea>
      <em><strong>Kijk  aub. na op typfouten!</strong></em> <span class="textareaRequiredMsg">Dit veld is verplicht in te vullen!</span><span class="textareaMinCharsMsg">Dit veld is verplicht in te vullen!</span></span>
      <input type="hidden" name="recaptcha_response_field" value="manual_challenge">
      </noscript>
       </p>
      <p><em>Tip: Gebruik de link 'Vernieuwen' indien u de woorden niet kunt lezen.</em></p>
      <p> </p>
      <p>
        <label>
          <input name="registreren" type="submit" id="registreren" onFocus="Highlight" onBlur="Highlight" onClick="MM_effectHighlight('registreren', 1000, '#F0F0F0', '#FFCC33', '#FFCC00', true)" value="Registreren">
        </label>
      </p>
      <input type="hidden" name="MM_insert" value="registratie">
    </form>
    <div class="tooltipContent" id="sprytooltip1">&gt; Klik om het formulier te verifiëren en u  te registreren.</div>
    <p> </p>
    <p> </p>
    <script type="text/javascript">
    <!--
    var sprypassword2 = new Spry.Widget.ValidationPassword("sprypassword2", {validateOn:["blur"], minChars:6, maxChars:15, minAlphaChars:1, minNumbers:1, maxAlphaChars:14, maxNumbers:14, minUpperAlphaChars:0, maxUpperAlphaChars:14, minSpecialChars:0, maxSpecialChars:0});
    var sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1", "none", {validateOn:["blur"], minChars:6, maxChars:50});
    var sprytextfield2 = new Spry.Widget.ValidationTextField("sprytextfield2", "none", {isRequired:false, validateOn:["blur"], minChars:0, maxChars:100});
    var sprytextfield3 = new Spry.Widget.ValidationTextField("sprytextfield3", "integer", {validateOn:["blur"], isRequired:false, minValue:0, maxValue:9999999999, minChars:9, maxChars:10});
    var sprytextfield4 = new Spry.Widget.ValidationTextField("sprytextfield4", "integer", {validateOn:["blur"], minValue:0, maxValue:9999999999, minChars:9, maxChars:10});
    var sprytextfield5 = new Spry.Widget.ValidationTextField("sprytextfield5", "email", {isRequired:false, validateOn:["blur"], minChars:7, maxChars:50});
    var sprytextfield6 = new Spry.Widget.ValidationTextField("sprytextfield6", "email", {validateOn:["blur"], minChars:7, maxChars:50});
    var sprytextfield7 = new Spry.Widget.ValidationTextField("sprytextfield7", "none", {validateOn:["blur"], isRequired:false, minChars:0, maxChars:50});
    var sprytextfield8 = new Spry.Widget.ValidationTextField("sprytextfield8", "none", {validateOn:["blur"], isRequired:false, minChars:0, maxChars:50});
    var spryselect1 = new Spry.Widget.ValidationSelect("spryselect1");
    var sprytextfield9 = new Spry.Widget.ValidationTextField("sprytextfield9", "none", {validateOn:["blur"], maxChars:50, minChars:1});
    var sprytextfield10 = new Spry.Widget.ValidationTextField("sprytextfield10", "none", {validateOn:["blur"], minChars:1, maxChars:50});
    var sprytextfield11 = new Spry.Widget.ValidationTextField("sprytextfield11", "integer", {validateOn:["blur"], minChars:2, maxChars:2, minValue:1, maxValue:31});
    var spryselect2 = new Spry.Widget.ValidationSelect("spryselect2", {validateOn:["blur"]});
    var sprytextfield12 = new Spry.Widget.ValidationTextField("sprytextfield12", "integer", {minChars:4, maxChars:4, validateOn:["blur"], minValue:1920, maxValue:2050});
    var sprytextfield13 = new Spry.Widget.ValidationTextField("sprytextfield13", "none", {validateOn:["blur"], isRequired:false, minChars:0, maxChars:100});
    var sprytextfield14 = new Spry.Widget.ValidationTextField("sprytextfield14", "none", {isRequired:false, validateOn:["blur"], minChars:0, maxChars:50});
    var sprytextfield15 = new Spry.Widget.ValidationTextField("sprytextfield15", "none", {minChars:0, maxChars:50, isRequired:false, validateOn:["blur"]});
    var spryselect3 = new Spry.Widget.ValidationSelect("spryselect3", {validateOn:["blur"], isRequired:false});
    var spryselect4 = new Spry.Widget.ValidationSelect("spryselect4", {validateOn:["blur"]});
    var sprytextfield16 = new Spry.Widget.ValidationTextField("sprytextfield16", "none", {validateOn:["blur"], isRequired:false, minChars:0, maxChars:50});
    var spryselect5 = new Spry.Widget.ValidationSelect("spryselect5", {isRequired:false, validateOn:["blur"]});
    var sprytextfield17 = new Spry.Widget.ValidationTextField("sprytextfield17", "integer", {validateOn:["blur"], isRequired:false, minValue:0, maxValue:9999999999, maxChars:10, minChars:9});
    var spryconfirm1 = new Spry.Widget.ValidationConfirm("spryconfirm1", "paswoord", {validateOn:["blur"]});
    var sprycheckbox1 = new Spry.Widget.ValidationCheckbox("sprycheckbox1", {validateOn:["blur"]});
    var sprytextarea1 = new Spry.Widget.ValidationTextarea("sprytextarea1", {validateOn:["blur"], minChars:1});
    var sprytooltip1 = new Spry.Widget.Tooltip("sprytooltip1", "#registreren", {useEffect:"fade", hideDelay:2});
    var sprytextarea2 = new Spry.Widget.ValidationTextarea("sprytextarea2", {validateOn:["blur"], minChars:3});
    //-->
    </script>
    </body>
    </html>
    <?php
    mysql_free_result($Contactenlijst);
    ?>
    
    

    In your PHP code, replace-

    }
    $editFormAction = $_SERVER['PHP_SELF'];

    on this subject.

    }

    ?>

    if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "registreren")) {

    // add your captcha verification code here ....

    // captcha most likely ends with a header command to relocate failed attempts, so make sure you add

    // an exit() command after that header.  Otherwise, allow the successful captcha to fall into the following

    // block of code.

    }

    do not neglect this closing brace

    ?>

    $editFormAction = $_SERVER['PHP_SELF'];

  • Inserting data into a table and insert many records into newtable

    Hi all

    I have table A and table b.
    Suppose that if I insert the data into the table, this table is inserted, the number of records records Count I want to insert in the table B

    I have to write a procedure for this cannot so any help on this.


    Thanks in advance.


    Sikora.

    Hello

    You can use this anonymous block and extend it to create the procedure. You can delete loop or leave it there and use the cursor loop

    DECLARE
       j   NUMBER;
    BEGIN
       FOR i IN 1 .. 100
       LOOP
          INSERT INTO A
          VALUES ('col1', 'col2', 'col3');
    
          j   := j+ sql%ROWCOUNT;
       END LOOP;
    
       INSERT INTO B   VALUES ('table name ', j);
    
       COMMIT;
    EXCEPTION
       WHEN OTHERS
       THEN
          ROLLBACK;
          DBMS_OUTPUT.put_line (SUBSTR (SQLERRM, 1, 200));
          RAISE;
    END;
    

    Published by: OrionNet on January 21, 2009 12:53 AM

  • updated line and insert them into another table with trigger.

    Hi guys I have a table that looks like this.
    CREATE TABLE TEST
      (
        "COL1" VARCHAR2(20 BYTE),
        "COL2" VARCHAR2(20 BYTE),
        "COL3" VARCHAR2(20 BYTE)
      )
    I'm going to insert the col1 and col2 values, but I need to get the value of column 3 of table 2 and then insert the complete record in table 3. I love doing that with a trigger. I get an error message and I can't for the life of me figuere out what im doing wrong.
    So here is my nonfunctional trigger.


    Here are the two table

    CREATE TABLE TESTTABLE
      (
        "COLUMN1" NUMBER(15,0),
        "COLUMN2" NUMBER(15,0)
      )
     
    
    Insert into TESTTABLE (COLUMN1,COLUMN2) values (1,5);
    HERE IS THE CODE OF THE TRIGGER
    CREATE OR REPLACE TRIGGER TRIGGER1 
    AFTER INSERT ON TEST 
    FOR EACH ROW 
    BEGIN
      update TEST
      SET COL3 = (SELECT COLUMN2 FROM TEST, TESTTABLE WHERE COLUMN1 = :new.COL1);
    END
    I get an error of trigger mutation that I tried the other iterations of the above but I'm not getting anywhere. I have dumb down my problem at these 3 table.
    Can someone point me in the right direction.

    You'll have to do some reading, but it comes down to process the data on education instead of line level.
    You may even be not at all a trigger.
    See:
    http://www.Oracle-base.com/articles/9i/mutating-table-exceptions.php
    http://asktom.Oracle.com/pls/asktom/asktom.download_file?p_file=6551198119097816936

  • inserting data into a table from another table

    Hello

    I have a to insert a data in the other table.

    My requirement is I field Date_effect_date in the departments, I would copy the details field in dept_effect_date of employees.

    I used the query

    Insert in the dept_effect_date of certain employees (dept_effect_date) departments;

    and the result is:

    SQL error: ORA-01400: cannot insert NULL into ('HR'. "'"' EMPLOYEES'."" EMPLOYEE_ID')

    01400 00000 - "impossible to insert a NULL value in (%s)."

    MY DB: oracle 10g XE

    Sainaba

    You can do this by UPDATE not INSERT.

    Sudheeryekkala wrote:

    Hello

    I have a to insert a data in the other table.

    My requirement is I field Date_effect_date in the departments, I would copy the details field in dept_effect_date of employees.

    I used the query

    Insert in the dept_effect_date of certain employees (dept_effect_date) departments;

    and the result is:

    SQL error: ORA-01400: cannot insert NULL into ('HR'. "'"' EMPLOYEES'."" EMPLOYEE_ID')

    01400 00000 - "impossible to insert a NULL value in (%s)."

    MY DB: oracle 10g XE

    Sainaba

    INSERT the results of will by adding new lines to the table so you have the above error. In your case, you must update the value of the existing column

    (or, if the volume is large, then fill the data -

    join the table two in a new table CREATE TABLE EMP_NEW AS SELECT * FROM EMPLOYEES, DEPARTMENTS .

    fall of ;

    Rename emp_new to ;

    * constraints/indexes if necessary be supported...

    )

    E employees update

    Set e.dept_effect_date = (select d.dept_effect_date

    departments d

    where e.dept_id = d.dept_id);

    Concerning

    Biju

  • Simple procedure to insert data into a table

    Hello

    I am trying to create a simple procedure to insert the data into the emp table.

    He throws after WARNING:

    The procedure that is created with compilation errors.

    CREATE or REPLACE procedure ins_emp (empno emp.empno%type,ename emp.ename%type,deptno emp.deptno%type)

    IS

    Emp.empno%type,P_ename emp.ename%type,P_deptno emp.deptno%type P_empno;

    BEGIN

    Insert into emp values (empno, ename, deptno);

    Ins_emp END;

    And when I try to run it

    execute ins_emp(1111,'abcd',20);

    He is to launch another error:

    PLSQL - 00905:OBJECT SCOTT. INS_EMP is not valid.

    can someone help me with this procedure?

    Thank you

    Hi Frank,.

    I thank very you much for your comments.

    I have a question:

    unless the procedure or function created with compilation errors, we cannot run them right.

  • Facing the issue when inserting data by region table

    Dear all,

    I have a region of the table which will be created initially five rows and im generating a sequence so that five lines simultaneously. First insertion was smooth without any issue.when I train for the second time, loading the page while it shows 10 records and then the third time, she displays 20 records in the table. He brings the existing record that is inserted into the table. Please get a solution to solve. The script below is my AM insert method

    If (! vo.isPreparedForExecution ())

    {

    vo.executeQuery ();

    }

    VO. Last();

    int fetchedrowcount = vo.getFetchedRowCount ();

    System.out.println ("number of rows->" + vo.getFetchedRowCount ());

    for (int i = 1; i < = fetchedrowcount; i ++) {}

    vo.setMaxFetchSize (0);

    VO. Last();

    VO. Next();

    Line OARow = (OARow) vo.createRow ();

    vo.insertRow (row);

    row.setNewRowState (Row.STATUS_INITIALIZED);

    row.setAttribute ("ClTransId", getOADBTransaction () .getSequenceValue ("apps.xxhrq_chcklist_trans_s"));

    }

    Heepth,

    The logic is simple.

    When the page initially loads, it brings 5 lines in your outer join function, then your code create another 5 rows based on the fetchedRowCount which is 5. All together, it makes 10.

    Second time when the page loads, the query returns (5 + 5) 10 rows and your code create another 10 rows based on the fetchedRowCount which is 10 this time. All together, it makes 20.

    It is clear now?

    Now go ahead and implement the solution I proposed. If all good, would you please close the thread by checking the useful and accurate answers. If you have questions let us know.

    See you soon

    AJ

  • Insert data into a table through button

    Hello

    I have a table it_app_file
    number of issue_id
    filename varchar2 (300)

    I ask to the apex, I have a file browser component and the button.

    I want to: when I select the file and click on join, it must insert in it_app_file.


    Help, please

    Hello

    After you change select, you have number / Date Format for this column log_file, as I posted earlier?

    BR, Jari

  • Inserting data into one table to another table.

    Hi all

    I'm having a few problems when copying data from the 1 table to another table. I have a data 1 date in a table, and I want to insert data in a partition of the main table. As it is the dev database space by getting a problem. I don't have enough space that I can maintain the data for the same date in 2 places.

    Here every way possible in oracle this 1 table may be made partition in the other table. (Just a question).

    Please suggest me a way out and if possible should be fast that data are more than 50 million lines and size along 10 GB.

    Thank you

    Are the columns of your source table identical to that of the destination partitioned table?

    If so, you can create an empty partition in the partitioned table and then create a swap partition to swap the source with the new empty partition table.

  • Insert data into one table other frome table

    Hi all

    I have a table called TRXN with 43 GB of data with a primary key... I have another table named TRXN_P with 15 GB of data...

    some of the files of TRXN_P are already there in the TRXN table... I want to insert these remaining data in TRXN_P table TRXN?

    How can I insert?

    any suggestions please?

    Thanks in advance...
    RAS

    Try this

    Directory of username/password query dumpfile = table_TRXN_P.dmp dump_directory_name = TRXN_P = expdp:------tables ' where your_unique_column_name not in (select your_unique_column_name from TRXN) "= TRXN_P

    Username/password directory Impdp dumpfile = dump_directory_name = table_TRXN_P.dmp remap_table = TRXN_P:TRXN table_exists_action = add

  • Generate the command Id and insert data into two different tables: oracle apex 5.0

    I have three tables. name of the tables: PRODUCT, ORDER_HEADER, ORDER_DETAIL. I took REPORT inter ASSETS in which the VALUES from TABLE product. I need to use the trigger here, there is a TEXT ARTICLE called ORDER ID: it will generate through trigger. so whenever new order placed order id must be unique. There is a button when this button is clicked, the VALUES of REPORT must be inserted in to ORDER_HEADER , ORDER_DETAIL (in fact, I am in confusion is it even possible).

    I tried to create the trigger: not work if


    CREATE OR REPLACE TRIGGER "EMP_TRG1".

    Before Insert on order_header

    for each line

    Start

    If: new. Order_ID is null

    then

    Select lpad (demo_seq.nextval, 8, '0'): new. Order_ID order_header;

    end if;

    end;

    SQL:

    Select

    apex_item. Text(1,p.PRODUCT_ID) PID.

    PN.product_name,

    apex_item. Text(2,p.PRODUCT_QTY) qt.

    apex_item. Text(3,p.unit_price) upward,

    apex_item. Text(4,p.TOTAL_AMOUNT) am

    OMS_SHIP_CART_DETAIL p, pn OMS_PRODUCT

    where p.product_id = pn.product_id

    DA:

    var arr_f01 = [];

    var arr_f02 = [];

    var arr_f03 = [];

    var arr_f04 = [];

    var arr_f05 = [];

    product_id var;

    unit_price var;

    Var Qty;

    var total_1;

    () $("input[name='f01']").each

    function() {}

    product_id = $(this).closest('tr') .children ('td [headers = 'PID']') .text ();

    unit_price = $(this).closest('tr') .children ('td [headers = "Uprice"]') .text ();

    Qty = $(this).closest('tr') .children ('td [headers = "Qty"]') .text ();

    total_1 = $(this). Closest ('tr'). Children ('td [headers = "total"]'). Text();

    arr_f01.push ($(this).) Val());

    arr_f02.push (product_id);

    arr_f03.push (total_1);

    arr_f04.push (unit_price);

    arr_f05.push (Qty);

    }  );

    (apex). Server.Process

    "Insert a command."

    , {f01: arr_f01, f02: arr_f02, f03: arr_f03, f04: arr_f04, f05: arr_f05}

    }

    , {dataType: "text", success: function (pData) {alert ('added product') ;}}

    );

    Ajax callback:

    declare

    l_count number;

    Start

    -insert into OMS_ORDER_HEADER (USER_ID, TOTAL_AMOUNT, batch, ORDER_DATE) values(:P1_USER_ID,:P42_TOTAL,'PENDING',SYSDATE);

    I'm looping 1.apex_application.g_f01.count

    insert into OMS_ORDER_DETAIL (PRODUCT_ID, UNIT_QTY, UNIT_PRICE, TOTAL_AMOUNT)

    values (APEX_APPLICATION. G_F01 (i), APEX_APPLICATION. G_F03 (i), APEX_APPLICATION. G_F04 (i), APEX_APPLICATION. G_F05 (i));

    commit;

    end loop;

    end;

    Hi Dominique,.

    I create a process page away present in your application

    declare
      l_order_id varchar2(8);
    begin
      insert into order_header(ORDER_ID
                            , STATUS
                            , ORDER_DATE)
                      values(lpad(demo_seq.nextval,8,'0')
                            , 'Pending'
                            , sysdate)
      returning ORDER_ID into l_order_id; 
    
      for rec in(select ID
                      , QTY
                      , PRICE
                  from product)
      loop 
    
        Insert Into Order_Detail ( ORDER_ID
                                  , PRODUCT_ID
                                  , QTY
                                  , UNIT_PRICE)
                            Values(l_order_id
                                  , rec.id
                                  , rec.qty
                                  , rec.price); 
    
        commit;
      end loop;
    end;
    

    Please check and let me know.

    Kind regards

    Jitendra

  • Insert data into two tables in a single transaction

    Hi all
    I have a problem with the development of features.

    Background:
    I have two tables: OFFER_HEADER and OFFER_CONTENT

    For now, user must insert and commit the OFFER_HEADER (single-row view), then content becomes accessible and OFFER_CONTENT(multi-row view) can be filled. It is done by selecting the save form PRODUCTS and integration of values in OFFER_CONTENT. Product data can be changed on the canvas of CONTENT form.

    My goal:
    I know this isn't a practical way to implement the functionality. I want to insert all the data (header and content) in a single transaction. What is the best way to do it?

    Thanks in advance,
    Best regards
    Bartek

    Hai,

    The error is now with the primary key. In order to check the value of the primary key as part of the operation.

    Kind regards

    Manu.

  • Reading file from the ftp server and importing data into the table

    Hi experts,

    Well, basically, I text with different layout files have been uploaded to an ftp server. Now, I must write a procedure to recover these files, read and insert data into a table... what to do?

    your help would be greatly helpful.

    Thank you

    user9004152 wrote:
    http://it.Toolbox.com/wiki/index.php/Load_data_from_a_flat_file_into_an_Oracle_table

    See the link, hope it will work.

    It is an old method, using the utl_file_dir parameter that is now obsolete and which is frankly a waste of space when external tables can do exactly the same thing much more easily.

Maybe you are looking for

  • How to enable javascript

    I want to activate javascript on my droidx, but I can't find where to do.

  • Pavillion g7 nitebook: creation of recovery disks

    Just bought a refurbished laptop (new never been used) that comes with windows 8. I want to spend to 8.1 and then windows 10. My problem is that it's said I can only create a recovery disk once. If I create a recovery disc now until I have the upgrad

  • 6700 Offiejet incoming fax in color will not print. How can I change this?

    The manual and online 'help' each say to change the incoming fax print option but do not say HOW TO DO THIS!  This work through the control panel of the printer or online or WHAT?

  • New mini dock and the W520

    Look at the specifications for the new cradle of 433835: 433835U mini dock Did someone tried this dock with the W520? I would like to know 2 things before "redevelopment": This shows that the W520 will have access to the USB 3.0 port on the dock. T i

  • Info and user account disappeared

    I've implemented my new wireless router Linksys and in the middle of the installation, my 8 month old son turned the computer off on me. I have it turned on and completed the installation, but when my wife got home, she discovered that his user profi