How to insert an XML document to the database table

Here's one my XML document example I want to import into database

Example XML Document
<? XML version = "1.0"? >
rowset <>
< ROW >
< DEPTXML department_id = "10" >
SALES of < DEPARTMENT_NAME > < / DEPARTMENT_NAME >
< EMPLIST >
< EMP_T EMPLOYEE_ID = "30" >
Scott < LAST_NAME > < / LAST_NAME >
< / EMP_T >
< EMP_T EMPLOYEE_ID = "31" >
Marie < LAST_NAME > < / LAST_NAME >
< / EMP_T >
< / EMPLIST >
< / DEPTXML >
< / ROW >
< ROW >
< DEPTXML department_id = "20" >
< DEPARTMENT_NAME > ACCOUNTING < / DEPARTMENT_NAME >
< EMPLIST >
< EMP_T EMPLOYEE_ID = "40" >
John < LAST_NAME > < / LAST_NAME >
< / EMP_T >
< EMP_T EMPLOYEE_ID = "41" >
Jerry < LAST_NAME > < / LAST_NAME >
< / EMP_T >
< / EMPLIST >
< / DEPTXML >
< / ROW >
< / LINES >
********End***********

Table in which I want to import this file

hr_new_emp
(
department_id number,
department_name varchar2 (50).
Number of employe_id
last_name varchar2 (50)
)

If your XML code is in a file, the easiest is to load as a CLOB in the file (google search will give you lots of results to load a file into a CLOB, so I won't detail it here). Once you have it as a CLOB you can fairly easily convert that XMLTYPE for example

  v_xml := XMLTYPE(v_clob);

(assuming that v_xml is declared as XMLTYPE and v_clob is declared as a CLOB)

Once you have it as an XMLTYPE that is simple to use XMLTABLE to break the XML into its components using SQL...

SQL> ed
Wrote file afiedt.buf

  1  with t as (select xmltype('
  2  
  3  
  4  
  5  SALES
  6  
  7  
  8  Scott
  9  
 10  
 11  Mary
 12  
 13  
 14  
 15  
 16  
 17  
 18  ACCOUNTING
 19  
 20  
 21  John
 22  
 23  
 24  Jerry
 25  
 26  
 27  
 28  
 29  ') as xml from dual)
 30  --
 31  -- END OF TEST DATA
 32  --
 33  select x.department_id, x.department_name, y.employee_id, y.last_name
 34  from t
 35      ,xmltable('/ROWSET/ROW'
 36                passing t.xml
 37                columns department_id   number       path '/ROW/DEPTXML/@DEPARTMENT_ID'
 38                       ,department_name varchar2(30) path '/ROW/DEPTXML/DEPARTMENT_NAME'
 39                       ,emplist         xmltype      path '/ROW/DEPTXML/EMPLIST'
 40               ) x
 41      ,xmltable('/EMPLIST/EMP_T'
 42                passing x.emplist
 43                columns employee_id     number       path '/EMP_T/@EMPLOYEE_ID'
 44                       ,last_name       varchar2(30) path '/EMP_T/LAST_NAME'
 45*              ) y
SQL> /

DEPARTMENT_ID DEPARTMENT_NAME                EMPLOYEE_ID LAST_NAME
------------- ------------------------------ ----------- ------------------------------
           10 SALES                                   30 Scott
           10 SALES                                   31 Mary
           20 ACCOUNTING                              40 John
           20 ACCOUNTING                              41 Jerry

... and once you have selected the data as it is quite easy to use an INSERT statement around it to insert data into a table, as in a regular INSERT... Select...

If you are dealing with large amounts of data or a more complex XML structure, you can consider using an XML schema to shred the data in tables.

Example here...

Re: XML processing in oracle file

And you can also load XML data easily by using the function XDB (WebDAV) to Oracle. Details in the Oracle documentation for that or you could find help in the forum XML DB, which also has a FAQ detailing the different methods how to load XML shred data...

DB XML FAQ

Tags: Database

Similar Questions

  • can express us batch relationship XML structure in the database table

    Hello
    Please help me...
    I have a lot of structure of batch XML... .can we express batch relationship XML structure in the database of tha table?

    Yes... so how do?

    Thank you
    Amou

    Published by: amu_2007 on March 25, 2010 18:57

    Published by: amu_2007 on March 25, 2010 19:03

    But what is the problem with the original solution, given that divides the XML into the data?

    I mean you could do something like that?

    SQL> create table batch (customer    VARCHAR2(10)
      2                     ,cust_name   VARCHAR2(10)
      3                     ,cust_type   VARCHAR2(10)
      4                     )
      5  /
    
    Table created.
    
    SQL>
    SQL> create table section (customer    VARCHAR2(10)
      2                       ,sect_name   VARCHAR2(10)
      3                       ,sect_depend VARCHAR2(10)
      4                       )
      5  /
    
    Table created.
    
    SQL> create table job_sections (customer        VARCHAR2(10)
      2                            ,sect_name       VARCHAR2(10)
      3                            ,job_sect_name   VARCHAR2(10)
      4                            ,job_sect_depend VARCHAR2(10)
      5                            )
      6  /
    
    Table created.
    
    SQL> create table job (customer        VARCHAR2(10)
      2                   ,sect_name       VARCHAR2(10)
      3                   ,job_sect_name   VARCHAR2(10)
      4                   ,job_type        VARCHAR2(10)
      5                   ,job_sub_type    VARCHAR2(10)
      6                   ,job_depend      VARCHAR2(10)
      7                   )
      8  /
    
    Table created.
    
    SQL>
    SQL>
    SQL> insert all
      2    when batch_rn = 1 then
      3      into batch (customer, cust_name, cust_type) values (customer, cust_name, cust_type)
      4    when section_rn = 1 then
      5      into section (customer, sect_name, sect_depend) values (customer, sect_name, sect_dependency)
      6    when job_sections_rn = 1 then
      7      into job_sections (customer, sect_name, job_sect_name, job_sect_depend) values (customer, sect_name, job_sect_name, job_sect_dependency)
      8    when 1=1 then
      9      into job (customer, sect_name, job_sect_name, job_type, job_sub_type, job_depend) values (customer, sect_name, job_sect_name, job_type, jo
     10  --
     11  WITH t as (select XMLTYPE('
     12  
     13    
     14      
    15 16 17 18 19 20 21 22
    23
    24 25 26 27 28 29 30 31
    32
    33 34 35 36 37 38 39 40 41 42 43
    44
    45
    46 ') as xml from dual) 47 -- 48 -- END OF TEST DATA 49 -- 50 ,flat as (select a.customer, a.cust_name, a.cust_type 51 ,b.sect_name, NULLIF(b.sect_dependency,'NULL') as sect_dependency 52 ,c.job_sect_name, NULLIF(c.job_sect_dependency,'NULL') as job_sect_dependency 53 ,d.job_type, d.job_sub_type, NULLIF(d.job_dependency,'NULL') as job_dependency 54 from t 55 ,XMLTABLE('/BATCH' 56 PASSING t.xml 57 COLUMNS customer VARCHAR2(10) PATH '/BATCH/@customer' 58 ,cust_name VARCHAR2(10) PATH '/BATCH/@name' 59 ,cust_type VARCHAR2(10) PATH '/BATCH/@type' 60 ,bat_sections XMLTYPE PATH '/BATCH/BATCH_SECTIONS' 61 ) a 62 ,XMLTABLE('/BATCH_SECTIONS/SECTION' 63 PASSING a.bat_sections 64 COLUMNS sect_name VARCHAR2(10) PATH '/SECTION/@name' 65 ,sect_dependency VARCHAR2(10) PATH '/SECTION/@dependency' 66 ,section XMLTYPE PATH '/SECTION' 67 ) b 68 ,XMLTABLE('/SECTION/JOB_SECTIONS' 69 PASSING b.section 70 COLUMNS job_sect_name VARCHAR2(10) PATH '/JOB_SECTIONS/@name' 71 ,job_sect_dependency VARCHAR2(10) PATH '/JOB_SECTIONS/@dependency' 72 ,job_sections XMLTYPE PATH '/JOB_SECTIONS' 73 ) c 74 ,XMLTABLE('/JOB_SECTIONS/JOBS/JOB' 75 PASSING c.job_sections 76 COLUMNS job_type VARCHAR2(10) PATH '/JOB/@type' 77 ,job_sub_type VARCHAR2(10) PATH '/JOB/@sub_type' 78 ,job_dependency VARCHAR2(10) PATH '/JOB/@dependency' 79 ) d 80 ) 81 -- 82 select customer, cust_name, cust_type, sect_name, sect_dependency, job_sect_name, job_sect_dependency, job_type, job_sub_type, job_dependency 83 ,row_number() over (partition by customer order by 1) as batch_rn 84 ,row_number() over (partition by customer, sect_name order by 1) as section_rn 85 ,row_number() over (partition by customer, sect_name, job_sect_name order by 1) as job_sections_rn 86 from flat 87 / 16 rows created. SQL> select * from batch; CUSTOMER CUST_NAME CUST_TYPE ---------- ---------- ---------- ABC ABC1 ABC_TYPE SQL> select * from section; CUSTOMER SECT_NAME SECT_DEPEN ---------- ---------- ---------- ABC X ABC Y X ABC Z Y SQL> select * from job_sections; CUSTOMER SECT_NAME JOB_SECT_N JOB_SECT_D ---------- ---------- ---------- ---------- ABC X JOB1 ABC Y JOB2 X ABC Z JOB3 ABC Z JOB4 SQL> select * from job; CUSTOMER SECT_NAME JOB_SECT_N JOB_TYPE JOB_SUB_TY JOB_DEPEND ---------- ---------- ---------- ---------- ---------- ---------- ABC X JOB1 X xx ABC X JOB1 X yy ABC X JOB1 X zz ABC Y JOB2 Y xx X ABC Y JOB2 Y yy X ABC Y JOB2 Y zz X ABC Z JOB3 ..... .... ABC Z JOB4 .... .... 8 rows selected. SQL>

    But it would depend on what you are really after regarding primary keys and relationships between the tables etc.

    I would like to put this just for you...

    H1. . If YOU PROVE to THE United States THAT OUTPUT you NEED, WE cannot GIVE YOU AN ANSWER

  • XML document to the oracle tables - data isn't fatching

    Hello
    I'm new to xml and trying to extract some fields of XML to oracle to use more in the application tables. I wrote the following to extract the values, but nothing is fatching document:



    <? XML version = "1.0" encoding = "UTF-8"? >
    -dmsgo:DMS_GO_Interface xmlns:dmsgo = "https://globalordering.daimler.com/start/dms/interface/DMS_GO_Interface/v1" xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" xsi: schemaLocation = "https://globalordering.daimler.com/start/dms/interface/DMS_GO_Interface/v1 DMS_GO_Interface_v1.xsd" >
    < dmsgo:majorversion > 1 < / dmsgo:majorversion >
    < dmsgo:identity context = datetimecreated "CONFGOFR_OUT" = "03/01/2011 10:51 ' source = 'go' sourceversion ="1.410.1"/ >"
    -< dmsgo:prospect >
    < code dmsgo:requestresponse = "0" / >
    < dmsgo:references / >
    -dmsgo:configurationcontext dataversion = LangueCode "2163" = "" orderingmarket = '867' saleslevel "O" = >
    < dmsgo:configurationdate > 03/01/2011 < / dmsgo:configurationdate >
    < / dmsgo:configurationcontext >
    -< dmsgo:vehicle >
    < dmsgo: variant baumuster = "2120482" manufacturercode = "2120482" / >
    < dmsgo:desc > E 200 CGI BlueEFFICIENCY sedan RHD < / dmsgo:desc >
    -< dmsgo:colorcombination >
    < dmsgo:interiorcolor codeowner = 'C' manufacturercode = "4201" = ppmtype "to THE" > black leather < / dmsgo:interiorcolor >
    < dmsgo:exteriorcolor = 'C' manufacturercode codeowner = "2497" ppmtype "READ" = > metal Brown corrosion < / dmsgo:exteriorcolor >
    < dmsgo:paintzone manufacturercode = "" preference = "2" / > "
    < / dmsgo:colorcombination >


    INSERT INTO p1 (flux_name, elment_1, elment_2, elment_3)
    SELECT flux_name, elment_1, elment_2, elment_3
    FROM XMLTable)
    XMLNamespaces ('https://globalordering.daimler.com/start/dms/interface/DMS_GO_Interface/v1' as 'dmsgo'),
    "dmsgo:DMS_GO_Interface/perspective/vehicle.
    passage xmltype (bfilename('DMLDIR','prospect.xml'), nls_charset_id ('CHAR_CS'))
    columns
    path of varchar2 (20) flux_name "dmsgo:variant/@baumuster"
    path of varchar2 (20) elment_1 "dmsgo:desc"
    path of varchar2 (20) elment_2 ' dmsgo:colorcombination / interiorcolor',
    path of varchar2 (20) elment_3 'dmsgo:colorcombination/interiorcolor/@manufacturercode '.
    );

    Help, please.

    Looking forward to early response.

    Thank you
    Usman

    Hello

    'Re missing you the prefix to namespace on elements.
    This should work:

    SQL> SELECT flux_name, elment_1, elment_2, elment_3
      2  FROM XMLTable(
      3    XMLNamespaces ('https://globalordering.daimler.com/start/dms/interface/DMS_GO_Interface/v1' as "dmsgo"),
      4    'dmsgo:DMS_GO_Interface/dmsgo:prospect/dmsgo:vehicle'
      5    passing xmltype(bfilename('DMLDIR','prospect.xml'), nls_charset_id('CHAR_CS'))
      6    columns
      7      flux_name varchar2(20) path 'dmsgo:variant/@baumuster',
      8      elment_1  varchar2(40) path 'dmsgo:desc',
      9      elment_2  varchar2(20) path 'dmsgo:colorcombination/dmsgo:interiorcolor',
     10      elment_3  varchar2(20) path 'dmsgo:colorcombination/dmsgo:interiorcolor/@manufacturercode'
     11  );
    
    FLUX_NAME            ELMENT_1                                 ELMENT_2             ELMENT_3
    -------------------- ---------------------------------------- -------------------- --------------------
    2120482              E 200 CGI BlueEFFICIENCY Sedan RHD       Leather black        4201
     
    
  • Impossible to analyze the xml.aspx contained in the main.js.Iam get the following error"could not obtain XML document, and the connection has failed: status 500

    Impossible to analyze the xml.aspx contained in the main.js.Iam get the following error"could not obtain XML document, and the connection has failed: status 500

    My main.js resembles

    xmlDataSource var = {}
     
    URL: 'dcds. - symbianxml.aspx", etc. (sample).
     
    init: function() {}
    URL, successful reminder, the reminder of failure
    This.Connect (this.) (URL, this.responseHandler, this.failureHandler);
    },
     
    /**
    * Analyzes the XML document in an array of JS objects
    @param xmlDoc XML Document
    * @returns {table} array of objects of the device
    */
    parseResponse: {function (xmlDoc)}
        
    var chElements = xmlDoc.getElementsByTagName ("channel");
       
    channels of var = [];
      
    Console.log (chElements.Length);
      
    for (var i = 0; i)< chelements.length;="">
        
    var channel = {};
       
    for (var j = 0; j)< chelements[i].childnodes.length;="">
        
    var node = Sublst.ChildNodes(1).ChildNodes(0) chElements [i] [j];
                
    If (node.nodeType! = 1) {//not an element node}
    continue;
    }
           
    Channel [node. TagName] = node.textContent;
    }
       
    Channels.push (Channel);
    }
    Console.log (Channels.Length);
    return the strings;
    },
     
    /**
    Manages the response and displays the data from device web app
    @param xmlDoc
    */
    responseHandler: {function (xmlDoc)}
      
    var channel = this.parseResponse (xmlDoc);
    var markup = "";
       
    for (i = 0; i< channels.length;="">
       
    markup += this.generateHTMLMarkup (i, channels [i]);
    }
    document.getElementById("accordian").innerHTML = mark-up;
    },
     
    /**
    Generates HTML tags to insert in to the DOM Web App.
    * @index i, index of the device
    @param device, device object
    */
    /*
    generateHTMLMarkup: function (i, channel) {}
      
    var str ="";
    "Str += '.


    ' onclick =-"mwl.setGroupTarget ('#accordian ',' #items_" + i + "', 'ui-show ',' ui - hide');" + ".
    "mwl.setGroupTarget ('#accordian ',' item_title_ #" + i + "', 'ui-open', 'ui-farm'); Returns false; \ » > » ;
    "" Str += "" + channel ['name'] + ' ";
    "Str += '.
    ";
    "Str += '.
    ";
    "Str += '.
    "+" id: "+ channel ['id'] +" ' "
    ";
    "Str += '.
    "+" type: "+ channel ['type'] +" ' "
    ";
    "Str += '.
    "+" language: "+ channel ['language'] +" ' "
    ";
    "Str += '.
    «+ "bandwidth:" + "fast" channel + "»»
    ";
    "Str += '.
    "+" cellnapid: "+ channel ["cellnapid"] +". "
    ";
    "Str += '.
    «+ ' link: '+'start the video »»
    ";
    "Str += '.
    ";
    return str;
    },*/
    generateHTMLMarkup: function (i, channel) {}
       
    var str ="";
    "Str += '.
    ";
    str +=  "" +
    "" + channel ['name'] + ""+""
    ";
    "Str += '.
    «+ ' link: '+'start the video »»
    ";
         
    return str;

    },
     
    failureHandler: {function (reason)}
    document.getElementById("accordian").innerHTML = "could not get XML document.
    '+ reason;
    },
     
    /**
    Retrieves a resource XML in the given URL using XMLHttpRequest.
    @param url URL of the XML resource to retrieve
    @param called successCb, in the XML resourece is recovered successfully. Retrieved XML document is passed as an argument.
    @param failCb called, if something goes wrong. Reasons, in text format, is passed as an argument.
    */

    Connect: {function (url, successCb, failCb)
      
    var XMLHTTP = new XMLHttpRequest();
      
    XMLHTTP. Open ("GET", url, true);

    xmlhttp.setRequestHeader("Accept","text/xml,application/xml");
    xmlhttp.setRequestHeader ("Cache-Control", "non-cache");
    xmlhttp.setRequestHeader ("Pragma", "non-cache" "");
      
    var that = this;
    XMLHTTP.onreadystatechange = function() {}
       
    If (xmlhttp.readyState == 4) {}
        
    If (XMLHTTP. Status == 200) {}
         
    {if (!) XMLHTTP.responseXML)}
    try {}
    If server has not responded with good an XML MIME type.
    var domParser = new DOMParser();
    var xmlDoc = domParser.parseFromString(xmlhttp.responseText,"text/xml");
           
    successCb.call (that, xmlDoc);
           
    } catch (e) {}
    failCb.call (, "answer was not in an XML format.");
    }
              
    } else {}
    successCb.call (that, xmlhttp.responseXML);
    }
    } else {}
    failCb.call (this, "connection failed: status"+ xmlhttp.status ");
    }
    }
    };
    XMLHTTP. Send();
    }
    };

    Please see the content in main.js is fully analyzed.

    Forward for the solution to my request all members of the community...

  • How to pass an xml CDATA in the string element when OSB call a webservice?

    How to pass an xml CDATA in the string element when OSB call a webservice?

    I have a business service (biz) this route to exploitation of a Web service.

    An example of this legacy Web service request:
    < soapenv:Envelope xmlns:soapenv = 'http://schemas.xmlsoap.org/soap/envelope/' xmlns: ex = "example" >
    < soapenv:Header / >
    < soapenv:Body >
    < ex: run >
    < ex: arg > <! [CDATA [< searchCustomerByDocumentNumber >
    < documentNumber > 12345678909 < / documentNumber >
    [[< / searchCustomerByDocumentNumber >]] > < / ex: arg >
    < / ex: run >
    < / soapenv:Body >
    < / soapenv:Envelope >

    type ex: arg is a string.

    How to pass this structure CDATA webservice in OSB?

    Steps to resolve this problem:
    1 create an XML schema. For example:


    elementFormDefault = "unqualified" >


              
                   
                        
                             
                             

                        

                        
                             
                        

                   

         

         

         
         

    With this XSD, XML can be generating:


    documentNumber

    2 create an XQuery query to create a ComplexType searchCustomerByDocumentNumber. For example:
    (: pragma bea: element global-element-return = "searchCustomerByDocumentNumber" location = "searchCustomerByDocumentNumber.xsd" ::))

    declare namespace xf = "http://tempuri.org/NovoSia/CreateSearchCustomerByDocumentNumber/";

    declare function xf:CreateSearchCustomerByDocumentNumber($documentNumber_as_xs:string)
    as {(searchCustomerByDocumentNumber)}

    {$documentNumber}

    };

    declare the variable $documentNumber as XS: String external;

    XF:CreateSearchCustomerByDocumentNumber ($documentNumber)

    3. in your step in proxy pipeline add to assign the created the XQuery function call from the number of the document of your payload.
    Assign to a variable (for example: called searchCustomerByDocumentNumberRequest)

    4. create an another Transformation of XQuery (XQ) to create a request to the existing Web service. For example:
    {fn - bea: serialize ($searchCustomerByDocumentNumberRequest)}

    For more information about xquery Serialize function:
    41.2.6 fn - bea: serialize()
    You can use the fn - bea: serialize() function if you need to represent an XML document as a string instead of as an XML element. For example, you can share an XML document through an EJB interface and the EJB method takes the string as an argument. The function has the following signature:

    FN - bea: serialize($input as item()) as xs: string

    Source: http://docs.oracle.com/cd/E14571_01/doc.1111/e15867/xquery.htm

  • How to insert as an entry within the formula variable, the total time on the scope window?

    How to insert, as an entry within the formula variable, the window of total time on the scope (i.e. of 20ms/div x 10 div = 200ms)?

    HERE'S A SAMPLE QUESTION:

    FORMULA FOR INTEGRAL ACTION:

    STATISTICS:

    Input variable: DPO4034 (CH1);

    Box: number of samples.

    FORMULA

    Input variable 0: DPO4034 (CH1); alias: x 0

    Input variable 1: 'time window Total out of scope?. " alias: x 1

    Input variable 2: number of samples (CH1); alias: x 2

    Under the operation Configuration: formula

    Y = (x 0 ^ 2) *(x1/x2)

    Output: Data 1 (CH1)

    THEN, WITH THE HELP OF STATISTICS:

    Input signal: data processing 1 (CH1)

    Checkbox: SUM

    Output: CH1 integral Action [has ^ 2s].


  • How is - a removes a document from the list recently displayed on the opening screen of the Acrobat Reader?

    How is - a removes a document from the list recently displayed on the opening screen of the Acrobat Reader?

    While you can't remove individual documents, you can choose how much (if any) to show.

    Edit > Preferences > Documents > open settings. Everything you want to value "Documents in the recently used list".

  • How do you 'unsecured' a document if the original sender does not know how the document became "secure"?  Error message is requesting a password.

    How do you 'unsecured' a document if the original sender does not know how the document became "secure"?  Error message is requesting a password.

    Hi Kris,

    We need password to open the document, there is no way to unlock the pdf without password.

    Kind regards
    Rahul

  • How to duplicate a pdf document in the cloud?

    How to duplicate a pdf document in the cloud?

    Open https://cloud.acrobat.com in a browser. Download the file to the local disk. Download the file from the local disk to the cloud.

  • How to insert a bar area in the slide page property metadata Muse CC

    I use the latest version of Muse CC and want to know how to insert a bar area in the model box slides property page metadata page title suffix

    I found it.  If anyone has this problem press the shift and -at the same time on a standard windows keyboard.

  • Inserting a new record in the database using a form empty ADF

    Hello

    I'm trying to insert a new record into the database using a form.

    I have an Employee table and its corresponding entity object and the view object. The table has an id that is used as the primary key and is filled using a sequence in the comic book.

    Data controls, I dragged and dropped at the sight of the employee as a form of ADF and checked the submit button include. Then I dragged and dropped the validation on submit button operation.

    When I connect to the app and go to the page used to create, I have 2 problems:
    1 - the form is filled with the logged in user info.
    2. If I try to change the news and validation, the user info is changed in the database and no new record is created.

    It makes a little sense to me, but I would like to know if there is a way around it (get an empty form and insert a new record).
    NB: the employee id is not part of the form, I want to be filled using the sequence.

    Kind regards
    MB

    User, please tell us your jdev version!

    To do this, you must create a new record before going to the display of the form page. In a stubborn workflow (btf), you drag the operation createInsert of the VO on the btf and it will generate a link method, add a view to the btf and put a navigation of the binding of the method of the page. Mark the method as 'Activity by default'. Now, ren, you call the workflow, you create a new record that will show your blank form.

    Timo

  • Insert several values in file in database table

    Hello

    I have a requirement where I need the list of files (list operation) using the FTP adapter and insert all the values listed in the database file.

    How to insert all the values of the file listed in the database. There are several file values listed so how insert all these values in the database?

    Thank you
    Vivek

    It is always a good practice to mark answers as correct/good

  • LabVIEW 2013 close when I try to read the database table.

    LabVIEW 2013 close when I try to read the database table.
    I get the error message, Labview falls just crashes. I use Labview x 32 and connective Toolkit of connectivity of database on Windows 7 x 64. I connect to PostgreSQL with ODBC driver, the connection is stable.
    In my database, I have a lot of tables, I read all those without one.
    When I try to read table bad I get data then labview crash. When I restart Labview, I have no message on the error.
    Also I try to use LabSQL-1. 1a. But it has the same result.

    I found the solution.

    I think the problem was that I have very large table in my database.

    At the beginning I received data from table with next quiry:

    SELECT column1, column2 FROM 'table ';

    But when I write then:

    SELECT column1, (column2, ',') array_to_string FROM 'table ';

    all worked!

  • Values entered into a textarea unwritten in the database table

    I have a very strange situation.  I have a form that has a certain number of fields, all fields of text standard apex.

    I have a button that calls a dynamic action that writes the values of these fields in their columns in the table.  No problem with this.

    I just added a textarea field defined with a maximum length of 300 characters, which maps to a new column in the database table that is defined as VARCHAR2 (300).

    I modified the PL/SQL to include the value of this new field in the database table writing.  When I run the dynamic action, everything else in the form is updated, but the text in the text not added to the table box.

    In session data, the data on the page are correct. The Session State of the textarea field is also correct.

    This isn't just a text box, it's ANY textarea I put on this page.  If I take a text field and transformed into a textarea field, the same thing happens.  If I take the new textarea field and transformed into a text field, the data gets written to the database table.

    Can someone explain this?  I can get by with only text fields, but it would be much better if I could have a field where mentions that he could properly wrap to the next line.

    Thank you!

    John

    John,

    edit your Textarea field and change in the Source Section as

    Source: always, replacing any value existing in State of Session

    Source type: column database

    and in

    Source value or Express: (write the name of the column in the data to be store)

    do not change this things your textarea data records in the database Table...

  • Check if e-mail exist in the database table

    I stumbled on this a few times before, but I'm not familiar with this system, whenever you enter an emailaddress, you see as a clock indicating the system checks if the e-mail address may be used, in other words, is not yet in a table. I would like something similar and when the "audit" is done and the emailaddress is not in the DB table, the rest of the form appears, otherwise, an error message indicates the address is already in use. I guess this could be done using Javascript, but is there also a PHP way to do this?

    It's simple to achieve. Create a query that filters your e-mail address in the database table WHERE = POST of the email field in the form is sent. If the query returns a line then the email already exist, otherwise it is available and can treat the rest of the form.

Maybe you are looking for