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

Tags: Fusion Middleware

Similar Questions

  • How can I insert several CSVs in dreamweaver in a table based on ID

    How can I insert several CSVs in dreamweaver in a table based on ID? I recorded each sheet in the doc excel as a CSV file and now I want to import all the CSVs in one table by pulling the information attached to the ID of the line.

  • Import/insert data from XML in Oracle database tables?

    Hello. (I use 10.1.3.3.0 JDeveloper and Oracle 10 g)

    I was able to export the data of one of my tables in the database using a View object and .writeXML.

    Now, I want to take an xml file that is formatted just like what is spit out by the writeXML and put this info in my database table. I followed the examples online, and have tried to use .readXML as follows:

    Element = XMLDoc.getDocumentElement ();

    vo.readXML (element,-1);

    I know that it's the kind of work, because at first, I got an error message that one of the required attributes was missing. So, I added this attribute in my xml file and run my code. No errors. But, I checked my database, and new records have been added.

    Is there something I did wrong? Or is it maybe something I left out? I also noticed that there are several versions of readXML as readFromXML. Which should I use and how?

    Thank you.

    Hello

    Example of work is completely: http://kuba.zilp.pl/?id=461

    Kuba

  • Insert data in single file into the table of multiples

    Hello

    I have a data file something like this
    C, 2, 10, 10.
    D,,,new,1002,27-Jun-2008,USD,27-Jun-2008,2047,A,MTL,inventory,0001,,,10,,27-Jun-2008,001,,,2047,
    D,,,new,1002,28-Jun-2008,USD,27-Jun-2008,2047,A,MTL,inventory,0001,,,10,28-Jun-2008,001,,,2047,

    where the first line
    -> C, 2, 10, 10, is the control register which is in table 1

    and all other records IE
    D,,,new,1002,27-Jun-2008,USD,27-Jun-2008,2047,A,MTL,inventory,0001,,,10,,27-Jun-2008,001,,,2047,
    D,,,new,1002,28-Jun-2008,USD,27-Jun-2008,2047,A,MTL,inventory,0001,,,10,28-Jun-2008,001,,,2047,

    enter the table 2.


    How can achieve us this by using the File/FTP adapter and adapter DB?


    Thank you

    Sunil

    1 1 creer create the FileAdapter/FtpAdapter, set nativce schema for your delimited file
    2. create a DBAdapter for Table1
    3. create a DBAdapter to Table2
    4 drag to transform two activity and create two xsl map, one with each on the array element 2 which pass through each element D of the Source variable and the second with transformation simple to assign control register values to the elements of table 1

    HTH

  • How to insert a value of triggers in the table?

    Mr President.

    I have the following trigger

    CREATE OR REPLACE TRIGGER lineitem_trg 
    BEFORE UPDATE OF lineitem ON voucherdet
    FOR EACH ROW
    BEGIN 
        :NEW.LINEITEM := TO_CHAR ( TO_NUMBER (:OLD.LINEITEM) + 1 , 'FM00' ); 
    END  lineitem_trg; 
    /
    

    Now to how to add this triggers a value in the table

    The value of this trigger is part of the primary key with voucher_id which is obtained by the voucher_id_seq

    This is my database as below

    CREATE TABLE "NOM"  (
      "ACCT_ID" VARCHAR2(7) NOT NULL ENABLE, 
      "ACCT_NAME" VARCHAR2(50) NOT NULL ENABLE, 
      "O_BAL" NUMBER(13,2), 
      "ITAX_ID" VARCHAR2(7), 
      "SALES_TAX_NO" VARCHAR2(20), 
      "PL_SUPPLIER" VARCHAR2(1) DEFAULT 'N', 
      "STOCK_REPORT" VARCHAR2(1) DEFAULT 'N', 
      "ACCT_TYPE" VARCHAR2(4), 
      CONSTRAINT NOM_PK PRIMARY KEY ("ACCT_ID")ENABLE, 
      CONSTRAINT NOM_ACCT_TYPE_FK FOREIGN KEY ("ACCT_TYPE")
       REFERENCES "ACCT_TYPE" ("ACCT_TYPE") ENABLE
       );
    CREATE TABLE "VOUCHER" (
      "VOUCHER_ID" VARCHAR2(8) NOT NULL ENABLE, 
      "VOUCHER_DATE" DATE DEFAULT sysdate, 
      "POST_DATE" DATE DEFAULT sysdate, 
      "DEBIT" VARCHAR2(7), 
      "CREDIT" VARCHAR2(7), 
      "VOUCHER_SOURCE" VARCHAR2(2), 
      CONSTRAINT VOUCHER_PK PRIMARY KEY ("VOUCHER_ID")ENABLE, 
      CONSTRAINT VOUCHER_NOM_DEBIT_FK FOREIGN KEY ("DEBIT")
       REFERENCES "NOM" ("ACCT_ID") ENABLE, 
      CONSTRAINT VOUCHER_NOM_CREDIT_FK FOREIGN KEY ("CREDIT")
       REFERENCES "NOM" ("ACCT_ID") ENABLE
       );
    
    
    CREATE TABLE "VOUCHERDET" (
      "VOUCHER_ID" VARCHAR2(8) NOT NULL ENABLE, 
      "DEBIT" VARCHAR2(7) NOT NULL ENABLE, 
      "CREDIT" VARCHAR2(7) NOT NULL ENABLE, 
      "PARTICULARS" VARCHAR2(100), 
      "AMOUNT" NUMBER(21,2),
      "LINEITEM" VARCHAR2(4) DEFAULT '01', 
      "V_ID_ITAX" VARCHAR2(11), 
      "V_ID_PAY" VARCHAR2(11), 
      "CHALLAN_NO" VARCHAR2(10), 
      CONSTRAINT VOUCHERDET_PK PRIMARY KEY ("VOUCHER_ID", "LINEITEM")ENABLE, 
      CONSTRAINT VOUCHERDET_DEBIT_FK FOREIGN KEY ("DEBIT")
       REFERENCES "NOM" ("ACCT_ID") ENABLE, 
      CONSTRAINT VOUCHERDET_CREDIT_FK FOREIGN KEY ("CREDIT")
       REFERENCES "NOM" ("ACCT_ID") ENABLE, 
      CONSTRAINT VOUCHERDET_VOUCHER_FK FOREIGN KEY ("VOUCHER_ID")
       REFERENCES "VOUCHER" ("VOUCHER_ID") ON DELETE CASCADE ENABLE
       );
    
    
    
    

    CREATE SEQUENCE VOUCHER_ID_SEQ INCREMENT BY 1 START WITH 1;
    
    
    begin
     execute immediate 'create or replace trigger VOUCHER_ID_TRG  '||chr(10)||
      '   before insert on "ALIZA"."VOUCHER" '||chr(10)||
      '   for each row '||chr(10)||
      'begin  '||chr(10)||
      '   if inserting then '||chr(10)||
      '      if :NEW."VOUCHER_ID" is null then '||chr(10)||
      '         select VOUCHER_ID_SEQ.nextval into :NEW."VOUCHER_ID" from dual; '||chr(10)||
      '      end if; '||chr(10)||
      '   end if; '||chr(10)||
      'end;'||chr(10);
      end;
      /
    
    
    
    
    

    Concerning

    And I explained to you why it is false.

    Go one read what I put above, and I gave an example of (with command and control elements) in the other thread.

    If you want the user a composite key as the primary key by using the primary key of the voucher and something else, do this thing, just a sequence that is obtained from a sequence value (not gapless, but always unique).  And then you always build your LINEITEM values for display based on this sequence for example

    LPAD (to_char (ROW_NUMBER () over (partition by order VOUCHER_ID by LINEITEM)), 2, '0') as a CONTROL element

    It's when you query the data to display it, is not to store it in the database.  In the database, you simply store an internal sequence number in LINEITEM.

    Do not try and store a sequence for your lineitem gapless.  It is false.

  • 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

  • How to insert the output in the Oracle database table records

    Nice day

    I have two tables (table A and table B) in my oracle database I created a process for mapping from Table A duplicate records to Table B, and the result (reports) must be inserted into the Table B. I can't make this process. Can someone help me please.

    Thank you and best regards,

    Muhammed Faraz

    Hi Muhammed,

    You will need create an export job and set up a new job as a result. Take a look in the help topic "export data" as he will explain the different options [Add/Remove and insert/etc.].

    Thank you

    Nick

  • Case to interview several values and unique to different tables return value

    Hi This is my first picture:
    with Table_1
    as
    (
          select 'CAR' Object, 2000 Policy    from dual
          union all
          select 'BIKE' Object, 2000 Policy  from dual
          union all
          select 'HOUSE' Object, 2000 Policy  from dual
          union all
          select 'MOBILE' Object, 2000 Policy  from dual
          union all
          select 'MONEY' Object, 2000 Policy  from dual
          union all
          select 'CREDIT' Object, 2000 Policy  from dual
          union all
          select 'SCOOTER' Object, 2001 Policy    from dual
          union all
          select 'BIKE' Object, 2001 Policy  from dual
          union all
          select 'BEACH' Object, 2001 Policy  from dual
          union all
          select 'HOUSE' Object, 2001 Policy  from dual
          union all
          select 'MONEY' Object, 2001 Policy  from dual
          union all
          select 'CREDIT' Object, 2001 Policy  from dual
          union all
          select 'DOOR' Object, 2002 Policy    from dual
          union all
          select 'BIKE' Object, 2002 Policy  from dual
          union all
          select 'GARDEN' Object, 2002 Policy  from dual
          union all
          select 'MOBILE' Object, 2002 Policy  from dual
          union all
          select 'MONEY' Object, 2002 Policy  from dual
          union all
          select 'CREDIT' Object, 2002 Policy  from dual
          
    )
    select * from Table_1
    I need to query the column object from table_1 for CAR or HOME and if they are present and then returns 'Y' otherwise 'n'. Linking this table_1 to table_2 through politics and the result will be table_3
    with Table_2
    as
    (
          select '21' AGE, 2000 Policy  from dual
          union all
          select '22' AGE, 2001 Policy from dual
          union all
          select '27' AGE, 2002 Policy from dual
          )
    select * from Table_2
    with Table_3
    as
    (
          select '21' AGE, 2000 Policy, 'Y'  Many_Obj    from dual
          union all
          select '22' AGE, 2001 Policy,  'Y' Many_Obj from dual
          union all
          select '27' AGE, 2002 Policy,  'N' Many_Obj from dual
          )
    select * from Table_3
    Thanks in advance

    Banner:
    Oracle Database 11 g Release 11.2.0.2.0 - 64 bit Production
    PL/SQL Release 11.2.0.2.0 - Production
    "CORE 11.2.0.2.0 Production."
    AMT for Linux: Version 11.2.0.2.0 - Production
    NLSRTL Version 11.2.0.2.0 - Production
    !

    Thanks for the insert statements.
    Here's a way

    with Table_1
    as
    (
          select 'CAR' Object, 2000 Policy    from dual
          union all
          select 'BIKE' Object, 2000 Policy  from dual
          union all
          select 'HOUSE' Object, 2000 Policy  from dual
          union all
          select 'MOBILE' Object, 2000 Policy  from dual
          union all
          select 'MONEY' Object, 2000 Policy  from dual
          union all
          select 'CREDIT' Object, 2000 Policy  from dual
          union all
          select 'SCOOTER' Object, 2001 Policy    from dual
          union all
          select 'BIKE' Object, 2001 Policy  from dual
          union all
          select 'BEACH' Object, 2001 Policy  from dual
          union all
          select 'HOUSE' Object, 2001 Policy  from dual
          union all
          select 'MONEY' Object, 2001 Policy  from dual
          union all
          select 'CREDIT' Object, 2001 Policy  from dual
          union all
          select 'DOOR' Object, 2002 Policy    from dual
          union all
          select 'BIKE' Object, 2002 Policy  from dual
          union all
          select 'GARDEN' Object, 2002 Policy  from dual
          union all
          select 'MOBILE' Object, 2002 Policy  from dual
          union all
          select 'MONEY' Object, 2002 Policy  from dual
          union all
          select 'CREDIT' Object, 2002 Policy  from dual
    
    ),
    Table_2
    as
    (
          select '21' AGE, 2000 Policy  from dual
          union all
          select '22' AGE, 2001 Policy from dual
          union all
          select '27' AGE, 2002 Policy from dual
    )
    SELECT
         age,
         policy,
         Many_Obj
    from
    (
    SELECT
         t2.age,
         t2.policy,
         CASE
              WHEN SUM(
                        CASE
                             WHEN t1.object IN ('CAR','HOUSE')
                             THEN 1
                             ELSE 0
                        END) over( PARTITION BY t2.age,t2.policy) > 0
              THEN 'Y'
              ELSE 'N'
         END Many_Obj,
         row_number() over (PARTITION BY t2.age,t2.policy order by 1) rn
    FROM
         Table_1 t1,
         Table_2 t2
    WHERE
         t1.policy = t2.policy
         )
    where rn = 1;
    
    AGE POLICY                 MANY_OBJ
    --- ---------------------- --------
    21  2000                   Y
    22  2001                   Y
    27  2002                   N        
    

    I advise you to spend the time learning analytical questions and using CASE expressions.

  • Insert several text fields to a database field

    I've seen before but can't seem to work when you have pieces of diferent separated in a phone number (area code - three digits - then the last three digits (XXX) XXX-XXXX) separated on your form. When the forn is inserted into your database, it has a population of a field instead of the three separate fields. Anyone know an article or has steps on how to do it.
    Database Access using ASP.

    You need to combine the field three in a variable and then insert the variable, put this code after the line that says MM_Insert or MM_Update and put the name of the variable in the sql insert. There is no error checking here you should also add that, something like isnumeric then

  • Import data in Excel to database table

    How to insert data from excellent to the database table?

    I did the following...,.

    2 create an HTML page with item browse file.
    3. loading of a button created.
    3. created as a result of the process to run by pressing the download button.

    BEGIN
    DECLARE
    v_blob_data BLOB;
    v_blob_len NUMBER;
    V_POSITION NUMBER;
    v_raw_chunk RAW (10000);
    v_char char (1);
    number of c_chunk_len: = 1;
    v_line VARCHAR2 (32767): = NULL;
    v_data_array wwv_flow_global.vc_arr2;
    number of v_rows;
    number of v_sr_no: = 1;
    v_rows_loaded NUMBER;

    BEGIN

    -Read data from wwv_flow_files
    Select blob_content from v_blob_data
    of wwv_flow_files
    where last_updated = (select max (last_updated) in the wwv_flow_files where UPDATED_BY =: APP_USER)
    and id = (select max (id) in the wwv_flow_files where updated_by =: APP_USER);


    v_blob_len: = dbms_lob.getlength (v_blob_data);
    V_POSITION: = 1;

    -Read and convert binary to a char
    WHILE (v_position < = v_blob_len) LOOP
    v_raw_chunk: = dbms_lob.substr(v_blob_data,c_chunk_len,v_position);
    v_char: = chr (hex_to_decimal (rawtohex (v_raw_chunk)));
    v_line: = v_line | v_char;
    V_POSITION: = v_position + c_chunk_len;
    -When a whole line is retrieved < / span >
    IF v_char = Chr (10) THEN
    -Convert comma to: use of wwv_flow_utilities
    v_line: = REPLACE (v_line, ', ' :'); ")
    -Converting each column separated by: in the data table
    v_data_array: = wwv_flow_utilities.string_to_table (v_line);
    -REMOVE THE OLD DATA
    -Insert data into the target table
    IF v_sr_no > 1 THEN
    RUN IMMEDIATELY ' INSERT INTO EMPO(ID,EMP_ID,NAME,TYPE,JOIN_DATE,LOCATION)
    "VALUES (: 1,: 2: 3: 4: 5: 6).
    USING
    -v_sr_no,
    v_data_array (1),
    v_data_array (2),
    v_data_array (3),
    v_data_array (4),
    v_data_array (5),
    v_data_array (6).
    END IF;
    -Remove
    v_line: = NULL;
    v_sr_no: = v_sr_no + 1;
    END IF;
    END LOOP;

    END;

    END;



    When this procedure of irun, it shows no data found.
    Impossible to take less.

    Hello

    Try this

    BEGIN
      DECLARE
        v_blob_data BLOB;
        v_blob_len NUMBER;
        v_position NUMBER;
        v_raw_chunk RAW(10000);
        v_char      CHAR(1);
        c_chunk_len NUMBER           := 1;
        v_line      VARCHAR2 (32767) := NULL;
        v_data_array wwv_flow_global.vc_arr2;
        v_rows        NUMBER;
        v_sr_no       NUMBER := 1;
        v_rows_loaded NUMBER;
      BEGIN
    
        -- Read data from wwv_flow_files
        SELECT blob_content
        INTO v_blob_data
        FROM wwv_flow_files
        WHERE name = :Px_YOUR_ITEM
        ;
    
        v_blob_len := dbms_lob.getlength(v_blob_data);
        v_position := 1;
        -- Read and convert binary to char
        WHILE ( v_position <= v_blob_len )
        LOOP
          v_raw_chunk := dbms_lob.substr(v_blob_data,c_chunk_len,v_position);
          v_char      := chr(hex_to_decimal(rawtohex(v_raw_chunk)));
          v_line      := v_line || v_char;
          v_position  := v_position + c_chunk_len;
          -- When a whole line is retrieved 
          IF v_char = CHR(10) THEN
            -- Convert comma to : to use wwv_flow_utilities
            v_line := REPLACE (v_line, ',', ':');
            -- Convert each column separated by : into array of data
            v_data_array := wwv_flow_utilities.string_to_table (v_line);
            --DELETE OLD DATA
    
            /* fill array if less than 6 columns */
            FOR i IN v_data_array.COUNT .. 6
            LOOP;
              v_data_array(i) := NULL;
            END LOOP;
    
            -- Insert data into target table
            IF v_sr_no >1 THEN
              EXECUTE IMMEDIATE
              'INSERT INTO EMPO(ID,EMP_ID,NAME,TYPE,JOIN_DATE,LOCATION)
              VALUES (:1, :2, :3, :4, :5, :6)'
              USING
              -- v_sr_no,
              v_data_array(1),
              v_data_array(2),
              v_data_array(3),
              v_data_array(4),
              v_data_array(5),
              v_data_array(6);
            END IF;
            -- Clear out
            v_line  := NULL;
            v_sr_no := v_sr_no + 1;
          END IF;
        END LOOP;
      END;
    END;
    

    Replace Px_YOUR_ITEM with your file browser object.

    PRECESS should insert null if there are not enough columns in your data

    Kind regards
    Jari

  • SQL Ldr-load from multiple files to multiple tables in a single control file

    Hello

    It is possible to load data from files dishes mutiple at several tables using a control file in SQL Loader? The flat file to database table relation is 1:1. All data from a flat file goes to a table in the database.

    I have about 10 flat files (large volume) that must be loaded into 10 different tables. And this must be done on a daily basis. Can I start charging for all 10 tables in parallel and a file command? Should I consider a different approach.

    Thank you
    Sisi

    What operating system? ('Command Prompt' looks like Windows)

    UNIX/Linux: a shell script with multiple calls to sqlldr run in the background with '&' (and possibly nohup)

    Windows: A file of commands using 'start' to start multiple copies of sqlldr.
    http://www.PCTOOLS.com/Forum/showthread.php?42285-background-a-process-in-batch-%28W2K%29
    http://www.Microsoft.com/resources/documentation/Windows/XP/all/proddocs/en-us/start.mspx?mfr=true

    Published by: Brian Bontrager on May 31, 2013 16:04

  • How to get data from a database table and insert into a file

    Hello
    I'm new to soa, I want to create an xml with the data from database tables, I'll have the xsd please suggest me how to get the data in the tables and insert in a file
    concerning

    in your bpel process, you can use the db adapter to communicate with the database.
    with this type of adapter, you can use stored procedures, selects, etc to get the data from your database into your bpel workflow.

    When did it call in your bpel to the db adapter process it will return an output_variable with the contents of your table data, represented in a style of xml form.

    After that, you can use the second card (a file synchronization adapter) to write to the content of this variable in output to the file system

  • Values are inserted into a SQL PL table to a database table

    Hello

    Here's my dilemma.

    I have values inserted into a pl sql table which I have collected from a web page. Now, I need to add these values in a database table. I see the values as 1-'AA', 2 = 'BB' etc.

    I use the following code to insert into a table outside in the database, and it seems to be crashing.

    for me in app_table.first... loop app_table. Last
    r_convention (i) .priority_country_code: = app_table (i);

    insert into test_countries
    values (test_seq, tion (i) .r_convention (i) .priority_country_code);

    commit;

    end loop;
    When I run this code, I see the values. But he goes to the first value and then crashes and does not pass by the
    the rest of the values. What I'm missing here?

    Thank you!

    and move the validation outside of the loop :-)

  • How to insert the value from the FORM to another database table?

    Hi all

    I have the following problem.

    I have a form that has a tabular layout for the MATURED_FD_DTLtable. (all about 20 line items)

    CREATE TABLE MATURED_FD_DTL

    (

    ACCT_FD_NO VARCHAR2 (17 BYTE) NOT NULL,

    CUST_CODE NUMBER (9),

    FD_AMT NUMBER (15),

    FD_INT_BAL NUMBER (15),

    TDS NUMBER (15),

    CHQ_NO NUMBER (10),

    CREATED_DATE DATE,

    CREATED_BY VARCHAR2 (15 BYTE),

    PREV_YR_TDS NUMBER (15),

    ADD_FD_AMT NUMBER (15),

    DESCRIPTION VARCHAR2 (100 BYTE),

    P_SAP_CODE NUMBER (10),

    P_TYPE VARCHAR2 (1 BYTE)

    )

    By clicking on 'SAVE' button, all values will be automatically is stored in the MATURED_FD_DTLdatabase table.

    But I want to insert these values in another table called TEMP.

    I want to insert values of form only, no table select.

    How can I do this?

    Help me.

    Is Oracle Designer 6i.

    Answer:

    BEGIN

    Commit_form;

    PREMIER_ENREGISTREMENT;

    LOOP

    insert into TEMP_MATURED_FD_DTL

    SELECT * FROM MATURED_FD_DTL WHERE ACCT_FD_NO =: acct_fd_NO;

    WHEN THE OUTPUT: SYSTEM. LAST_RECORD = "TRUE";

    NEXT_RECORD;

    END LOOP;

    PREMIER_ENREGISTREMENT;

    COMMIT;

    MESSAGE ("RECORD UPDATED AS PAID '");

    MESSAGE (' ', no_acknowledge);

    END;

  • Insert Varray values in a cluster where the table is

    Hei,

    I use the openG libraries. I have a HAND in cluster that has 2 groups A, B that contains the different controllers (bool, strings, integers, enum) and a C array which has a cluster that contains also various controllers. What I want to do, is to read an INI file and save it in cluster A, B & C table. I managed to write the values for A, B clusters, but with table C, I have a few problems.

    How or which is the best way to access the values in the INI file and save it in table C that belongs to a MAIN cluster. The code below is how I do for the cluster A and B.

    Thanks for the help.

    Hello

    I apologize for the poor explanation. I need to work on that. Let's see if I can do better...

    I have some sections that I want to represent as clusters AND some sections of an array of clusters where the key values match grapes controls in the INI file. In addition, the VI has a core that has clusters with some elements (int, string, enum) and an array of cluster that also has some elements. I hope that is not confusing. To simplify, I want to write the values for 'children' of the main groups. As you may have noticed that I prepare this code as an object-oriented approach.

    Here is the solution I got on LAVA: https://lavag.org/topic/18951-insert-varray-values-into-a-cluster-where-the-array-is/

    Thank you for contributing

Maybe you are looking for

  • Vertical lines problem

    Hello guys,. I have a MacBook Pro 17' Early 2011 model. It shows on the screen 5 red vertical lines and a blue vertical line. When the screenshot was taken, it does not show one of these vertical lines there. I'm so not if it's software problem or ha

  • How can I delete unwanted bookmarks?

    I bookmarked multiple pages and you no longer need. I can't find a select button so I can delete them. Obviously, I'm not a wiz technical lol thanks for any help

  • Letools Sync App

    I installed Letools on my laptop and was able to send files to the tablet the Tablet k1. However, when you SYNC after access to these files in the Tablet, it will bring back the original files to the Tablet and will not update the original files on t

  • Computer repaired

    Back in January, my computer is completely turned off - no indication of power. Sent from my Alienware X 51 R2 to DELL computer for repairs. Before shipping, I removed my two hard drives by recommendation of DELL. By getting my computer back, they sa

  • How big a video card I can install without replacing the power supply?

    I have a Pavilion Elite m9280.sc - has. Also have a Creative Audigy Gamer card installed in the PCI slot. Can also be upgraded hard drives, one for the SSD and the other for more storage. Don't know if that will eat more power. So, how many Watts is