Insert into select * from table 3. -is on the agenda by the needless?

I've got an example of script, it will work for any table, so I don't bother with the full ddl.

----------------------------------------------------------------------------
create table test in select * from hotels where 1 = 2;

Insert into test select * from Hotels by city;

Select the city from the trial;

-drop table test is serving;
-----------------------------------------------------------------------------

The amazing thing is, that the city is ordered alphabetically,
but you would say it is that an operation order is irrelevant.

Any ideas on that?

This will still work?

Edited by: FourEyes on December 8, 2008 22:55

Edited by: FourEyes on 8 December 2008 22:56

Edited by: FourEyes on 8 December 2008 22:56

Hello

The [SQL Oracle 10 language reference | http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_9014.htm#sthref9371] manual says:

«In regards to the ORDER BY clause from the subquery in the DML_table_expression_clause, you place your order is guaranteed only for the inserted rows and only within each extension table.» Orders new lines with regard to existing lines is not guaranteed. »

Tags: Database

Similar Questions

  • Problem with "select * from table" for dynamic IN the list

    I have a 'for loop' based a query that does not work. The query is supposed to return the name of the table, the data type and the name of the column in the columns poses a number of name filters. The problem I have is when I run the query into a TOAD with:

    schema_list value SCOTT, MED and the clause of 'in' as ' to (select * from table (DATAPUMP_UTIL.in_list_varchar2 (:schema_list))))»

    The query returns the expected lines.

    When I have it in my code as shown below it returns no rows. I don't know what hurts me, but any help would be great! I'm on Oracle 11.1.0.6.0.
    PROCEDURE export_schema_ondemand (schema_list VARCHAR2, encrypt_file NUMBER default 0, mask_sensitive_data NUMBER default 0) IS  
        ...
        schema_list_t := my_package.in_list_varchar2(schema_list);
        ... 
        for c1 in
           (
            with ok_to_mask as (
            select 
                owner,
                table_name, 
                column_name
            from   
               all_tab_columns
            where
                owner in (select * from table(schema_list_t))
            minus
            (SELECT 
                c.owner,
                p.table_name,
                cc.column_name
            FROM 
                all_cons_columns cc, 
                all_constraints p,
                all_constraints c
            WHERE 
                c.owner in (select * from table(schema_list_t))
                c.constraint_type = 'R'
                AND p.owner = c.r_owner
                AND p.constraint_name = c.r_constraint_name
                AND cc.owner = c.owner
                AND cc.constraint_name = c.constraint_name
                AND cc.table_name = c.table_name
            UNION ALL
            SELECT 
                c.owner,
                cc.table_name,
                cc.column_name
            FROM 
                all_cons_columns cc,
                all_constraints p,
                all_constraints c
            WHERE
                p.owner in (select * from table(schema_list_t))
                AND p.constraint_type in ('P','U')
                AND c.r_owner = p.owner
                AND c.r_constraint_name = p.constraint_name
                AND c.constraint_type = 'R'
                AND cc.owner = c.owner
                AND cc.constraint_name = c.constraint_name
                AND cc.table_name = c.table_name))
            select 
                atc.table_name as mask_tab, 
                atc.column_name as mask_col, 
                atc.data_type as mask_type
            from   
                all_tab_columns atc,
                ok_to_mask otm
            where
                atc.owner = otm.owner
                and atc.table_name = otm.table_name
                and atc.column_name = otm.column_name
                and atc.owner in (select * from table(schema_list_t))
                and 
                (
                atc.column_name like '%LAST%NAME%'
                or atc.column_name like '%FIRST%NAME%'
                or atc.column_name like '%NAME_LAST%'
                or  atc.column_name like '%NAME_FIRST%'
                or  atc.column_name like '%ENAME%'
                or atc.column_name like '%SSN%'
                or atc.column_name like '%DOB%'
                or atc.column_name like '%BIRTH%'
                )
                and atc.column_name not like '%PHYSICIAN_%'
                and atc.column_name not like '%DR_%'
                and atc.column_name not like '%PROVIDER_%'
                and atc.column_name not like 'PRESCRIBER_%'     
           )
          loop
             ...
    
    FUNCTION in_list_varchar2 (p_in_list  IN  VARCHAR2)  RETURN VARCHAR2_TT is
    
        l_tab   VARCHAR2_TT := VARCHAR2_TT();
        l_text  VARCHAR2(32767) := p_in_list || ',';
        l_idx   NUMBER;
            
    BEGIN
        LOOP l_idx := INSTR(l_text, ',');
            EXIT WHEN NVL(l_idx, 0) = 0;
            l_tab.extend;
            l_tab(l_tab.last) := TRIM(SUBSTR(l_text, 1, l_idx - 1));
            l_text := SUBSTR(l_text, l_idx + 1);
        END LOOP;
    
        RETURN l_tab;
            
    END in_list_varchar2;
    Published by: BluShadow on June 29, 2011 16:11
    addition of {noformat}
    {noformat} tags.  PLEASE READ {message:id=9360002} TO LEARN TO DO THIS YOURSELF.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    

    Hello

    If you have a query that works well when you launch it directly, and that breaks down when you start with a procedure, this can be a problem of privileges.

    Points of view ALL_ * shows only the objects you have access, but using a procedure, privileges must be granted directly to the user and not with a role.

    You should check the SELECT privileges to your user through roles and give them directly to the user.

    Hope this will help.

    Sylvie

  • Insert into MDQ_OLD select * from table (lt_monitorMdq);

    I'm trying to insert into a table that has only a single column, which is a column of a user defined type (UDT). The UDT is nested, that is one of the attributes of the UDT is an another UDT.

    I aim to insert into the table like this pseudo-code:

    INSERT INTO T1 SELECT * FROM THE UDT;

    CREATE TABLE MDQ_OLD (myMDQ UDT_T_MONITOR_MDQ)

    NESTED TABLE myMDQ

    (T1_NEW) ACE STORE

    THE NESTED TABLE MONITOR_MDQ_PRIM_RIGHTS

    STORE AS T2_NEW);

    The MONITOR_MDQ_CLI procedure. Read below returns the parameter lt_monitorMdq which is a UDT type as announced. The statement "insert into select MDQ_OLD * table (lt_monitorMdq);" fails, while the second insert statement works.

    Is it possible to get the first statement of work?

    I'm on Oracle 11 g 2.

    DECLARE

    lt_monitorMdq UDT_T_MONITOR_MDQ;

    BEGIN

    MONITOR_MDQ_CLI. Reading (TRUNC (SYSDATE),

    TRUNC (SYSDATE),

    NULL,

    NULL,

    "MILLION BTU.

    lt_monitorMdq); -Note lt_monitorMdq is an OUT parameter

    -This insert does not work

    Insert into MDQ_OLD select * from table (lt_monitorMdq);

    BECAUSE me in 1... lt_monitorMdq.count

    LOOP

    Dbms_output.put_line ('lt_monitorMdq: ' | .mdq_id lt_monitorMdq (i));

    -This integration works

    INSERT INTO MDQ_OLD (MYMDQ)

    VALUES (UDT_T_MONITOR_MDQ (UDT_R_MONITOR_MDQ)

    lt_monitorMdq (i) .gasday,

    1,

    NULL,

    NULL,

    NULL,

    NULL,

    NULL,

    NULL,

    NULL,

    NULL,

    NULL,

    NULL,

    NULL,

    NULL,

    NULL,

    NULL,

    () UDT_T_MONITOR_MDQ_PRIM_RIGHT

    () UDT_R_MONITOR_MDQ_PRIM_RIGHT

    1,

    NULL,

    NULL,

    NULL,

    NULL,

    NULL,

    NULL,

    NULL,

    (NULL)));

    END LOOP;

    END;

    have you tried:

    INSERT INTO MDQ_OLD (myMDQ) VALUES (lt_MonditorMDq);

    curiosity:

    Is there a particular reason, why you have created a table with a single column of type UDT instead of:

    CREATE TABLE... OF UDT_T_MONITOR_MDQ;

    I can tell you from experience that using a nested table, you can easily query the data in the nested table.

    MK

  • Inserting into a temporary table

    Hi all

    I use this code to insert into a temporary table

    INSERT INTO VISIT_TEST

    (NO, VISIT_ID)

    VALUES

    (1,: ALL_ADMITTED_PATIENT.) VISIT_ID);  -guess: ALL_ADMITTED_PATIENT. VISIT_ID is another number.

    COMMIT;

    It inserts nothing,

    but when I try to insert all the values of pl/sql with the same way

    INSERT INTO VISIT_TEST (NO., VISIT_ID) VALUES (2, 4);

    It inserts with success.

    the code for creating the table of tempo is

    CREATE A VISIT_TEST GLOBAL TEMPORARY TABLE (NO NUMBER, NUMBER VISIT_ID) COMMIT PRESERVE ROWS

    Why does not insert on it data?

    PS: the whole issue is that I run a report from a form, and the query of the report is based on the temporary table.

    what I want to know is, when I run the report from inside my form, is considered a new session, and this is why the report cannot see the data in the table of tempo or am I wrong?

    Thank you

    > when I run the report of my form, which constitutes a new session, and this is why the report cannot see the data in the table of tempo, or am I wrong?

    You're not bad. Forms and reports use separate database sessions. Reports can not see TWG data entered via Forms module.

    Concerning

  • records by inserting into one another table

    Hi Masters

    I have to insert records from table to table b, which do not exist in table b. Please, help me in this record.

    create table test1 (eno number (2), ename varchar2 (10));

    Insert into test1 values(1,'abc');
    Insert into test1 values(2,'xyz');
    Insert into test1 values(3,'pqr');
    Insert into test1 values(4,'vara');

    create table test2 (eno number (2), ename varchar2 (10));

    Insert into test2 values(2,'xyz');
    Insert into test2 values(4,'vara');

    I tried like this...

    SQL > get the ap;
    1. INSERT ALL
    2. WHEN r_num = 1
    3 THEN IN VALUES test2 (eno, ename)
    4 OTHER INTO test2 VALUES (null, null)
    5. SELECT eno, ename
    6, ROW_NUMBER () OVER (PARTITION BY eno, ename)
    7 ORDER BY eNAME - or else
    8                             )  AS r_num
    9 * FROM test1
    SQL > /.

    4 lines were created.

    SQL > select * from test2;

    ENO ENAME
    ----- ----------
    2 xyz
    4 vara
    1 abc
    2 xyz
    3 pqr
    4 vara

    6 selected lines.

    the result above is not correct... Please advice.

    Concerning

    Evelyne

    Use MERGE:

    SQL > select * from test1;

    ENO ENAME
    ---------- ----------
    1 abc
    2 xyz
    3 pqr
    4 vara

    SQL > select * from test2;

    ENO ENAME
    ---------- ----------
    2 xyz
    4 vara

    SQL > fusion
    2 in test2
    3 using test1
    4 you (test1.eno = test2.eno and test1.ename = test2.ename)
    5 when not matched
    6. then insert
    7 values(test1.eno,test1.ename)
    8.

    2 lines merged.

    SQL > select * from test2;

    ENO ENAME
    ---------- ----------
    2 xyz
    4 vara
    3 pqr
    1 abc

    SQL >

    SY.

  • Insert into table1 from table1

    Hello

    I tried to insert into table - from select col1, col2, col3 from table b where
    Table - b.change_dt between 't1d' and 'T2D.

    can someone help me with the query

    Thank you
    insert into table-A from select col1,col2,col3 from table-b where
    table-b.change_dt between 'dt1' and 'dt2'
    

    you have an additional 'from', so it will be:

    insert into table-A(col1,col2,col3) (select col1, col2, col3 from table b where)
    Table - b.change_dt between 't1d' and "T2D")

    Please, close your threads, try to clean up the forum.

  • insert into a final table based on a condition

    Hello
    create table table1(invoice_number varchar2(4), covg_date date, employee_number varchar2(5),
     service_option varchar2(2), FEES VARCHAR2(5), AMOUNT NUMBER(9,2));
     
    insert into table1 values('1','01-JUL-2011','11','8','F1,F2',100);
    insert into table1 values('2','01-JUL-2011','12','2','F1,F2',110);
    insert into table1 values('3','01-JUL-2011','13','9','F1,F2',120);
    insert into table1 values('4','01-JUL-2011','14','3','F1,F2',130);
    commit;
    
    create table table2(invoice_number varchar2(4), covg_date date, employee_number varchar2(5), 
    service_option varchar2(2),FEES VARCHAR2(5), AMOUNT NUMBER(9,2));
    
    insert into table2 values('1','01-JUL-2011','11','88','F1,F2',100);
    insert into table2 values('2','01-JUL-2011','12','2','F1,F2',110);
    insert into table2 values('3','01-JUL-2011','13','9','F1,F2',122);
    insert into table2 values('4','01-JUL-2011','14','3','F1',130);
    insert into table2 values('4','01-JUL-2011','15','3','F1',130);
    commit;
    
    create table final_table(insert_type varchar2(1),invoice_number varchar2(4), covg_date date, employee_number varchar2(5), 
    service_option varchar2(2),FEES VARCHAR2(5), AMOUNT NUMBER(9,2));
    We need to insert in final_table based on the differences between table1 and table2. The condition for this is:
    For example: for a given employee number (11) for a covg_date(July-2011) given, if there is at least a difference in any value of the column that is in this case the service_option (8.88)...
    I need to insert record from table1 into final_table with insert_type as 'ELDERS '.
    and insert record of table2 in final_table with insert_type as 'NEW '.

    Same employee number 14, there is a difference between column fees and I should insert as in the example above
    Same employee number 13, there is a difference between the column AMOUNT and I must insert as in the example above.

    For example employee number 15, there is no record in table1 but found in table2 and which will be inserted as it is...

    What my idea was to go through separate employee_number, covg_date in table1 and check every value in table2 to the same disease and insert into final_table...

    But if there is a better option as insertion directly using select clause or a sort of direct insertion without loop...

    Thanks for the help in advance

    Maybe a modified version of something like this:

    INSERT INTO final_table
    ( insert_type
    , invoice_number
    , covg_date
    , employee_number
    , service_option
    , fees
    , amount
    )
    SELECT insert_type
         , invoice_number
         , covg_date
         , employee_number
         , service_option
         , fees
         , amount
    FROM   (
         SELECT invoice_number
              , covg_date
              , employee_number
              , service_option
              , fees
              , amount
              , 'OLD' AS insert_type
         FROM   table1
         MINUS
         SELECT invoice_number
              , covg_date
              , employee_number
              , service_option
              , fees
              , amount
              , 'OLD' AS insert_type
         FROM   table2
         UNION ALL
         SELECT invoice_number
              , covg_date
              , employee_number
              , service_option
              , fees
              , amount
              , 'NEW' AS insert_type
         FROM   table2
         MINUS
         SELECT invoice_number
              , covg_date
              , employee_number
              , service_option
              , fees
              , amount
              , 'NEW' AS insert_type
         FROM   table1
           )
    WHERE  employee_number = :emp_number
    AND    covg_date       = TO_DATE(:date_string,'MM/DD/YYYY')
    ;
    
  • issue: sql insert into select

    which is wrong with this query?

    insert into m_payment_option (p_type, m_fulfillment)

    values ('DIRECT_DEBIT', (select id from M_FULFILLMENT whose id not in (select m_fulfillment from M_PAYMENT_OPTION)));

    SQL-Fehler: ORA-01427: Unterabfrage fur eine liefert mehr als eine line line

    01427 00000 - "einreihig subquery returns several lines.

    the subquery returns:

    SELECT id from M_FULFILLMENT whose id not in (select m_fulfillment from M_PAYMENT_OPTION)

    47113

    47182

    47183

    ..

    Hallo,

    Try this

    insert into m_payment_option (p_type,m_fulfillment)
    select 'DIRECT_DEBIT', id from M_FULFILLMENT  where id not in (select m_fulfillment from M_PAYMENT_OPTION));
    

    The subquery in your statement offers several lines and failed to insert 2 or more values in your m_fulfillment column at a time.

    But I think you want to insert several lines. Otherwise, you need to change your subquery to offer that one value, maybe a max or min function will help.

    Grüße aus Bonn

    Kay

  • Very slow SELECT * FROM table

    Hello
    could you please help me, that's why execution of
    Select * from myTable very slow (more than an hour and running)?
    Table has 2 GB, BUT the use of the disc is only 5%!

    When I execute select count (*) from myTable, usage is 100% and I have the result in 1 minute...

    Thank you.

    Please see the nets [url http://forums.oracle.com/forums/thread.jspa?messageID=1812597#1812597] when your query takes too long... and [url http://forums.oracle.com/forums/thread.jspa?threadID=863295&tstart=0] HOW TO: post a request for tuning SQL statement - model of accounting. Maybe comment by Sybrand on accounting for the new trace files needs a qualification, as the work through the normal steps of setting before posting the raw trace.

    I think you might have some misconceptions about the work of parallel processing how and what to KEEP. You can also consult the manual of Concepts on when things go in the PGA, and when they go into the CMS and find out how to see the use of the PGA. If you try to load the buffers of the SGA by making a parallel with full table scan, it won't, because this combination uses your PGA and multiblock reads to increase performance - negative in some cases, such as yours.

    In other words, you're [url http://www.doingitwrong.com/wrong/585_munkavedelem.jpg] made wrong.

  • CAPTURE THE OUTPUT IN INSERT INTO SELECT AND DELETE

    Hi all


    INSERT into employee_history_arch select * from employee_history where employee_status = 'CP' and action_dt < (sysdate-32);
    commit;

    delete from employee_history where employee_status = 'CP' and action_dt < (sysdate-32);
    commit;

    I must capture both the output of the insert and delete the sql query and compare the two values for validation. I shouldn't use select count (*) before the delete statement. I shud exactly capture the output... How to do? Please help me

    We will have ' 30 deleted rows' or ' 30 inserted rows"in our tool... I need to capture that 'put out' in a variable and validate against the other

    This should be easy.

    SQL> set serverout on
    SQL> DECLARE
      2    v_rows_inserted PLS_INTEGER;
      3    v_rows_deleted  PLS_INTEGER;
      4  BEGIN
      5    INSERT INTO emp_temp
      6      SELECT * FROM emp WHERE deptno = 20;
      7    v_rows_inserted := SQL%ROWCOUNT;
      8    dbms_output.put_line('Rows Inserted: ' || v_rows_inserted);
      9    DELETE FROM EMP WHERE deptno = 20;
     10    v_rows_deleted := SQL%ROWCOUNT;
     11    dbms_output.put_line('Rows Deleted: ' || v_rows_deleted);
     12    IF v_rows_inserted = v_rows_deleted THEN
     13      dbms_output.put_line('They are same!');
     14    ELSE
     15      dbms_output.put_line('They are NOT same!');
     16    END IF;
     17  END;
     18  /
    Rows Inserted: 7
    Rows Deleted: 7
    They are same!
    
    PL/SQL procedure successfully completed.
    
  • do a select from table using order by ASC and recover only a range

    Hello
    I have a problem in my program and I want to know the line which is the cause in order to correct the code!

    -There is a line between 19500 and 19600 lines that gives me an error.
    -my program made a NLSSORT (my_field, ' nls_sort = binary "") AS "KEY1".

    so I think that if I do something like that, I get the same order:

    Select * from my_table
    order my CSA my_field
    where the rank number bettween 19500 and 19600

    My problem:
    I have no idea how to do this last part. does anyone know how to do this?
    I was just trying to sort it out and then check out lines up to 19600, but I can't do that because there is no enough space in temp score.


    Thank you.

    Best regards
    Ricardo Tomas
    select col1, col2, col3...
    from (select my_table.*, rownum rn
           from (select * from my_table
                    order by my_field asc
                 ) my_table
          )
    where rn between 19500 and 19600
    

    Note: you must order in a subselect before applying the rownum because the order is usually applied after the right column in a statement pseudo-device select rownum.

  • Select * from TABLE (tst_name_pw.list);

    Windows XP + 10.2.0.1.0 Oracle

    I did tst_name_pw desc and show as below:

    PROCEDURE Argument name default input/output Type
    ------------------------------ ------------------------------ ---------------------------------------------------------- --------- -------
    (FUNCTION) < return value > TABLE LIST unknown


    I have don see the table as tst_name_pw or the list name in the database.
    Anyone it clarify it please?
    Thank you

    Hello

    782150 wrote:
    Windows XP + 10.2.0.1.0 Oracle

    I did tst_name_pw desc and show as below:

    PROCEDURE Argument name default input/output Type
    ------------------------------ ------------------------------ ---------------------------------------------------------- --------- -------
    LIST (FUNCTION) TABLE OF strangers

    I have don see the table as tst_name_pw or the list name in the database.
    Anyone it clarify it please?
    Thank you

    It seems that tst_name_pw is a package, not a table.

  • Insert into DB using SQLservice: can't take the text with single quotes:

    I use Execute sql JDBC service statement.

    I'll explain with simple code:

    insert into mytable (id, desc) values (1, 'this is the document of the customer');

    This works perfectly.

    But if I have apostrophes in the desc-

    insert into mytable (id, desc) values (1, 'this is the document the customer' );

    It is throwing error at a standstill operation errors.

    I know that in Oracle, to escape the single quotes that write us

    insert into mytable (id, desc) values (1, "it is of customer" s document ");

    But, we can not control here in Adobe as the desc is from field on a form when the user enters it.

    I'm guessing that it might be a known issue & can someone tell me the solution.

    Thank you

    KC

    Use a parameter query to avoid this problem.

    insert into mytable (id, desc) values (?,?);

    The two parameters (? brands) can be replaced by actual values using XPATH Expression.

    If you do this, you query runs without raising any errors.

    Nith

  • ADF Code corner #50 - tree selection listener Table do not save the State of the

    Hello world

    With the help of JDev Studio Edition Version 11.1.1.3.0

    I have a table of tree using the earphone generic selection based on the excellent article by Frank Nimphius during synchronization of forms for entries of tree node edit. http://www.Oracle.com/technetwork/developer-tools/ADF/learnmore/50-synchromize-form-TreeSelection-169192.PDF

    My problem:

    My selectedNodeRowKey and selectedNodeRowIterator variables are turning to null out the listener.

    Process and code:

    I select a node. It called the selection event of onTreeSelect, which in turn saves the node key and the iterator in the same support bean backingBeanScope value.
          DCIteratorBinding _treeIteratorBinding = null;
          _treeIteratorBinding = treeBinding.getDCIteratorBinding();
    //Frank's code above ...
    
          this.selectedNodeRowKey = nodeBinding.getRowKey();
          for (Object opaqueFacesKey: treeTable.getSelectedRowKeys())
          {
            treeTable.setRowKey(opaqueFacesKey);
            this.selectedNodeRowIterator =
                ((JUCtrlHierNodeBinding) treeTable.getRowData()).getRowIterator();
          }
    
          System.out.println();
          System.out.println("Update Key: " + this.selectedNodeRowKey);
          System.out.println("Update Ite: " + this.selectedNodeRowIterator);
    
    //Frank's code resumes ...
          Row[] found =
            this.selectedNodeRowIterator.findByKey(this.selectedNodeRowKey, 1);
    Then, I click on a button that calls an actionListener in the same bean support.
      public void onButtonRemove(ActionEvent actionEvent)
      {
        System.out.println("Remove button pressed.");
    
        BindingContainer bindings = getBindings();
    
        System.out.println(this.selectedNodeRowKey);
        System.out.println(this.selectedNodeRowIterator);
    
        OperationBinding operationBinding =
          bindings.getOperationBinding("deleteChildren");
        operationBinding.execute();
        System.out.println("Remove complete");
      }
    This gives me the result
    Update Key: oracle.jbo.Key[112 ]
    Update Ite: oracle.jbo.server.ViewRowSetImpl@aa641d
    bos.model.queries.TbomView
    
    Remove button pressed.
    null
    null
    Remove complete
    What happened to my values and node iterator? I guess it has something to do with a scope or something similar to C++ through reference instead of the value. The strange thing is, the default MakeCurrent onSelection the auditor's work, but use this generic listener and values change.

    Published by: LovettWB on December 21, 2010 14:51

    Hello

    You can try setting the bean to the session scope? I guess it works, which brings me to my main point. If the managed bean is used in a stubborn workflow (which I assume you are referring to the use of fragments of page jsff), make sure that it is also defined in the workflow definition and not adfc-config. Personally, I like to feel it is best to set the bean managed in the metadata scopes, in which it is used. So could already solve the problem

    Frank

  • Function of package of call per line in the statement INSERT INTO SELECT

    Hello

    I wrote the following SQL insert.

    INSERT the Table_A (Col_A, Col_B, Col_C)

    SELECT Col_A, Col_B, (SELECT PACKAGE1. DOUBLE FUNC())

    FROM Table_A

    WHERE Col_A = "AAA".

    PACKAGE1. Func() is a function to create numbers using the sequence.

    The result is

    Col_a Col_B, Col_C

    ---------------------------------------

    C003 AAA B1

    C003 AAA B2
    C003 AAA B3

    What I want is as follows:

    Col_a Col_B, Col_C

    ---------------------------------------

    C003 AAA B1

    AAA B2 C004
    AAA B3 C005

    I want different values per line in Col_C. is it possible to do this?

    I think the fact that you put the function call in a subquery is why he executed only once (which is a useful thing to know if you want this feature). To get executed for each line, you only need to do this:

    INSERT the Table_A (Col_A, Col_B, Col_C)

    SELECT Col_A, Col_B, PACKAGE1. FUNC()

    FROM Table_A

    WHERE Col_A = "AAA".

    However, as others have said, there is no reason to wrap a sequence.nextval in a function.

Maybe you are looking for

  • Pending messages

    Hello!Yesterday, randomly my messages don't go through some people. It's my Skype Windows 7. I've updated Skype to the latest version, but the problem persists. This does not happen with all my contacts.-.Until someone dares ask... lol... No, they ar

  • Nokia BH-214 and stereo headset BH-214

    Unable to connect to the Nokia BH-214 stereo headset.

  • API not installed - fix included

    I use VirtualBench with installed software V1.1.1 and would begin work with the LabVIEW API, if I can do a generation of arbitrary signals, however, the API functions are not appearing under a measure i/o in LabVIEW 2013 or 2014 (and "VirtualBench" f

  • Battery always in on the Ideapad Z480 white LED.

    I just bought the IdeaPad Z480 with Windows 7, I have to wear the device off, but the single-pass of orange LED battery indicator to black and rest in order to know that the battery is fully charged?

  • Mouse pointer moves while typing

    When typing, the cursor moves to a different location. This is serious concern during typing. How to fix this, in Windows 7?