Table update permanently

Hello

Is it possible that you can be constantly updated a table or chart in labview without going through the instrument inside the loop of processing of the information itself? Basically, I want to take 10 readings of voltage and updated after each iteration of the loop at the chart. The problem I have is that I need the table outside the loop because it is connected to other data as well.

Thank you

Konrad


Tags: NI Software

Similar Questions

  • Table update do not command button is held down

    Hi guys,.

    My application gets the data and then returns it in a table that is updated after each set of data is read. This part works fine, however I also require the user to be able to hold down one of the two buttons to control the function of an actuator control (forward and backward). Explain it further, when one of these buttons are pressed a voltage is output, releasing the tension is reset. However, the key is held down the table does not continue to date, when the button is released the table then updates through all the values in the queue. I understand that this is most likely a problem with holding the button causing the other user interface events are not processed. I therefore tried to use ProcessSystemEvents(), ProcessDrawEvents(), and experiments using an async timer to control the update of the UI through PostDeferredCallback(), all this without success.

    If anyone can help with a solution that would allow me to run both of these functions required at the same time it would be greatly appreciated!

    Thanks in advance

    Ben

    Problem solved by simply swallowing the event, I am able to perform the functions desired!

    See you soon

    Ben

  • A table updated outside of the Apex are visible in the Apex?

    Hi all

    I want to insert into a table from the command line prompt, is it possible to see the update on the same table in my APEX application?

    I tried, but it doesn't look like I have, is there something wrong or some tweak I need to do?

    If the table is updated within the APEX, I could see it from the CMD.  But not the other way around.

    My system:

    Windows 7

    Apex 5

    Oracle 12 c 12.1.0.2.0

    Thank you.

    948287 wrote:

    Please update your forum profile with a recognizable username instead of "948287": Video tutorial how to change username available

    I want to insert into a table from the command line prompt, is it possible to see the update on the same table in my APEX application?

    I tried, but it doesn't look like I have, is there something wrong or some tweak I need to do?

    If the table is updated within the APEX, I could see it from the CMD.  But not the other way around.

    Of course. You are commit ting external transactions before trying to view it in APEX? Explicit commits should not by their SUMMIT as at least a validation will be performed internally for each cycle to view/submit page.

  • Table update: lack of expression

    Hello

    I'm trying to update a table with values from another table.

    But I get expression missing error.

    I have created sample data for verification

    =============================================

    create the table empmstdet as

    (

    Select 10 empid, 0 active of all the double union

    Select 11 empid, 0 active double

    );

    update of empmstdet a set a.active =

    Select active

    (

    Select 10 like empid, 1 as an asset of all the double union

    Select 11 as empid, 1 as an asset of double

    ) b where b.empid = a.empid;

    I use oracle 10g

    Help, please

    update of empmstdet one

    Set a.active = (select b.active

    (select empid 10, 1 as an asset of all the double union)

    b Select empid 11, 1 as being active in the double)

    where b.empid = a.empid);

    This should do the trick... but you will update all rows in the table a no matter whether you look for a line in the table b (not a problem for your example). If you can't find any line, the value of the asset is going to be to NULL.

    Alternative:

    MERGE into empmstdet one

    USING (select empid 10, 1 as an asset of all the double union)

    b Select empid 11, 1 as being active in the double) on (a.empid = b.empid)

    WHEN MATCHED THEN update set a.active = b.active;

    (not tested)

    No update on the 'a' - rows without matching entries in table "b".

    HTH

  • How to disable the index to the rows of the table updated

    Hello world

    I have a problem on a table with Oracle11g.

    I would update a table a lines opposite two in a table. This table has an index, and during the inversion, the index is duplicated.

    So, I turn off the index and then rebuild all indexes like this: How to disable the index in oracle

    However, I can't update a table when my index finger is rolled unusable.

    I create my table:

    CREATE  TABLE MY_TABLE(
      ID                         NUMBER(5) NOT NULL,
      TYPE                        NUMBER(1) NOT NULL,
      PRIO                       NUMBER(4) NOT NULL,
      CONSTRAINT PK_MY_TABLE
        PRIMARY KEY (ID, TYPE )
    );
    
    CREATE INDEX  PRIO_UK
        ON MY_TABLE(TYPE, PRIO);
    
    
    
    

    Then I selected all the elements and the results is:

    ID Type Prio
    1110
    2111

    Then, I tried to update this list with this script:

    UPDATE MY_TABLE set PRIO = 11 WHERE ID = 1 AND TYPE = 1;
    UPDATE MY_TABLE set PRIO = 10 WHERE ID = 2 AND TYPE = 1;
    
    
    
    

    I have an error on the first line, because the subscript for type 1 and 11 priority already exist.

    You have another solution to solve my problem?

    I thank you very much.

    Do not disable your index. Just perform your update with a single blow. Like this

    SQL> select *
      2    from my_table;
    
            ID       TYPE       PRIO
    ---------- ---------- ----------
             1          1         10
             2          1         11
    
    SQL> update my_table
      2     set prio = case when id = 1 and type = 1 then 11
      3                     when id = 2 and type = 1 then 10
      4                end
      5   where (id = 1 and type = 1)
      6      or (id = 2 and type = 1);
    
    2 rows updated.
    
    SQL> select *
      2    from my_table;
    
            ID       TYPE       PRIO
    ---------- ---------- ----------
             1          1         11
             2          1         10
    
    SQL>
    
  • table update, cancel the change, another session could ' get value changes in 10g

    Edit data in a table, then advanced to change its original value. In general another session could get changed by advanced in select value but it not work. After the "starting strength" I can get it.

    I did this test in 11.2.0.3 and I get the value without the "starting strength". Who can tell me why? Thank you very much.

    ORACLE 10.2.0.1, OS rhel5.4 x86_64

    session1:

    SQL > create table ty (name varchar (20));

    Table created.

    SQL > insert into ty values ('XXXX');

    1 line of creation.

    SQL > commit;

    Validation complete.

    SQL > update ty set name = "YYYY";

    1 line update.

    SQL >

    session2:

    change cancel

    Select

    INDX,

    ktuxesta,

    ktuxecfl,

    ktuxesqn,

    ktuxesqn envelope #.

    ktuxescnw scnW,

    SNCB ktuxescnb,

    ktuxerdbf dba_file,

    ktuxerdbb dba_block,

    nub ktuxesiz

    Of

    x$ ktuxe

    where

    ktuxesta = 'ACTIVE '.

    ;

    KTUXESTA KTUXECFL KTUXESQN # SCNW DBA_FILE DBA_BLOCK NUB SNCB WRAP INDX

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

    263 ACTIVE NO 4 4 0 736229 5 59 1

    BED > define dba 5,59

    S/N 0X0140003B (5,59 20971579)

    BED > find/c XXXX

    File: /oracle/oradata/ora10/undotbs02.dbf (5)

    Block: 59 Offsets: 1361 in 1872 Dba:0x0140003b

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

    58585858 0000000c 00480020 001 0002 001300e2 00000000 01000000 010000e2 c

    0000000b 01140008 0401003 b fd070000 00000086 fd070000 a 00400101 002, 0086

    00000019 0de30277 00000000 00000000 00000000 00000004 016d18bc 9c0a0000

    2a 000010 0000005 00170004 002b 0000 00400101 9c0a00ba 80000075 0e4000b9 b

    0e4000ff 12058102 0000002c 0000002f 00070600 00040001 00000002 c1170180

    01800778 72021315 162e0180 0180000c 00180010 001 0002 00150005 02000005 c

    02000000 00000000 0000000b 01133000 00040002 016d18bc 2a00003b 00400101

    002e0008 10400001 12058101 00000065 00090700 00070002 0000002c 104000ff

    00000001 80018001 80018001 8002c 109 07787202 1315162e 0000000c 00180010

    001C 0002 00150005 02000005 02000000 00000000 0000000 01132f00 00040002 b

    016d18bc 2a00003b 00400101 002f0007 10400001 104000ff 12058102 0000002c

    00000037 00090700 00070002 00000002 01800180 01800180 07787202 c10e0180

    1315162e 0000000c 00180010 001 0002 00150005 02000005 02000000 00000000 c

    0000000b 01132e00 00040002 016d18bc 2a00003b 00400101 002c 0007 10400001

    104000ff 12058102 00000036 00090700 00070002 00000002 c10e0180 0000002c

    01800180 01800180 07787202 1315162e 0000000c 00180010 001 0002 00150005 c

    < 32 bytes per line >

    BED > d/v s/n 1361 offset 5.59 County 10

    File: /oracle/oradata/ora10/undotbs02.dbf (5)

    Block: 59 Offsets: Dba:0x0140003b 1361 to 1370

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

    58585858 0000000c l 0048 XXXX... H

    < 16 bytes per line >

    BED >

    BED > change/c Davis dba 5,59 1361 offset

    WARNING: the content of previous BIFILE will be lost. Move forward? Y (Y/N)

    File: /oracle/oradata/ora10/undotbs02.dbf (5)

    Block: 59 Offsets: Dba:0x0140003b 1361 to 1370

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

    44444444 0000000c 0048

    < 32 bytes per line >

    BED > sum dba 5,59 apply

    Check file 5, block 59 value:

    current = 0x0c0a, required = 0x0c0a

    BED > d/v s/n 1361 offset 5.59 County 10

    File: /oracle/oradata/ora10/undotbs02.dbf (5)

    Block: 59 Offsets: Dba:0x0140003b 1361 to 1370

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

    44444444 0000000c l 0048 Davis... H

    < 16 bytes per line >

    BED >

    session3:

    SQL > conn / as sysdba

    Connected.

    SQL > alter system flush buffer_cache;

    Modified system.

    SQL > alter system flush shared_pool;

    Modified system.

    SQL > conn ty/ty

    Connected.

    SQL > select * from ty.

    NAME

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

    XXXX

    SQL >

    SQL > startup force

    ORACLE instance started.

    Total System Global Area 285212672 bytes

    Bytes of size 2020192 fixed

    83889312 variable size bytes

    192937984 of database buffers bytes

    Redo buffers 6365184 bytes

    Mounted database.

    Open database.

    SQL > conn ty/ty

    Connected.

    SQL > select * from ty.

    NAME

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

    DELALANDE

    SQL >

    In 11g

    Oracle OS: RHEL X86_64 6.2 11.2.0.2

    session1:

    SQL > select * from test;

    NAME

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

    XXXX

    SQL > update test set name = "YYYY";

    1 line update.

    SQL >

    session2:

    SQL > /.

    KTUXESTA KTUXECFL KTUXESQN # SCNW DBA_FILE DBA_BLOCK NUB SNCB WRAP INDX

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

    343 ACTIVE NO 1288 1288 0 1738249 3 242 1

    BED > set s/n 3 242

    S/N 0X00C000F2 (12583154 3 242)

    BED > find/c XXXX

    File: /oradata/oradata/ora10/undotbs01.dbf (3)

    Block: 242 Offsets: 5741 to 6252 Dba:0x00c000f2

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

    58585858 0000000 c 004 c 0020 0002 001400 010000 00000000 01000000 cd cd 001C

    0000000b 01130008 010000 00014 010e00ed 7d1a0000 00C 000000f2 0c 000000ee

    7d1a0000 530c8b99 861 000000f8 has 0000 00000 00000000 00000004 00C 00d7dbf2

    0de4dbff 7e000005 00200004 c 0500007 01b 00024 012f0000 80000096 861a 0062

    0c 400060 0c4000ff 12058101 0000002c 00070600 00030001 00000002 00db005c

    c10702c1 79640b0b 07018007 14151601 80018016 001d000c 004c 0020 00020002

    00020007 00010001 000000 cd cd b 010000 00000000 01000000 0000000, 01060008

    0c 010000 00014 000000ed 00000090 7d1a0000 7d1a0000 010d00c6 00C 000000f2

    cea43485 861 has 0000 00000 00000000 00000004 8fb30005 0d 000000 00C 000000f1

    001f0004 c 0500007 01b 00024 012e0000 861a 0062 80000082 0c 400060 0c4000ff

    0000002c 12050101 00db0054 000706ff 00040005 00020003 00000001 ff000000

    000600c 1 3f0000c1 610000c 1 16000079 640b0b14 15160080 00000080 0000000 c

    c 004 0020 0002 001400cd 010000 00000000 01000000 0000000b 01210008 cd 001C

    0c 010000 000000f2 00C 7c1a0000 000000C6 7d1a0000 00000090 00014 010c006f

    861a 0000 00000 00000000 00000004 0de4dbff 7e000005 06C 00000065 cea43471

    001C 0004 0500007c 01b 00024 012d 0000 8000006e 861a 0062 0c 400060 0c4000ff

    < 32 bytes per line >

    BED > change the offset of 3 242 s/n/c Davis 5741

    WARNING: the content of previous BIFILE will be lost. Move forward? Y (Y/N)

    File: /oradata/oradata/ora10/undotbs01.dbf (3)

    Block: 242 Offsets: 5741 to 6252 Dba:0x00c000f2

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

    44444444 0000000c 004c 0020 0002 001400cd 010000 00000000 01000000 cd 001C

    0000000b 01130008 010000 00014 010e00ed 7d1a0000 00C 000000f2 0c 000000ee

    7d1a0000 530c8b99 861 000000f8 has 0000 00000 00000000 00000004 00C 00d7dbf2

    0de4dbff 7e000005 00200004 c 0500007 01b 00024 012f0000 80000096 861a 0062

    0c 400060 0c4000ff 12058101 0000002c 00070600 00030001 00000002 00db005c

    c10702c1 79640b0b 07018007 14151601 80018016 001d000c 004c 0020 00020002

    00020007 00010001 000000 cd cd b 010000 00000000 01000000 0000000, 01060008

    0c 010000 00014 000000ed 00000090 7d1a0000 7d1a0000 010d00c6 00C 000000f2

    cea43485 861 has 0000 00000 00000000 00000004 8fb30005 0d 000000 00C 000000f1

    001f0004 c 0500007 01b 00024 012e0000 861a 0062 80000082 0c 400060 0c4000ff

    0000002c 12050101 00db0054 000706ff 00040005 00020003 00000001 ff000000

    000600c 1 3f0000c1 610000c 1 16000079 640b0b14 15160080 00000080 0000000 c

    c 004 0020 0002 001400cd 010000 00000000 01000000 0000000b 01210008 cd 001C

    0c 010000 000000f2 00C 7c1a0000 000000C6 7d1a0000 00000090 00014 010c006f

    861a 0000 00000 00000000 00000004 0de4dbff 7e000005 06C 00000065 cea43471

    001C 0004 0500007c 01b 00024 012d 0000 8000006e 861a 0062 0c 400060 0c4000ff

    < 32 bytes per line >

    BED > apply sum s/n 3 242

    Check file 3, block 242 value:

    current = 0xae88, required = 0xae88

    BED >

    session3:

    SQL > alter system flush buffer_cache;

    Modified system.

    SQL > conn ty/ty

    Connected.

    SQL > select * from test;

    NAME

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

    DELALANDE

    SQL >

    SQL > select version of v$ instance;

    Version

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

    11.2.0.2.0

    SQL >

    Hell _in_memory_undo parameter

  • EMC CX4 and ESXi 5.1 table updated 1 compatibility?

    Hi people,

    Can you please share what it takes to make sure you can run the VM without any problems or downtime when you use the EMC CX4 array?

    my table has been updated at the last TORCH as per screenshot below:FLARE30.JPG

    But anyway, VMware HCL and the KB site VMware KB: EMC CX and Firmware VNX and necessary ESX for the vStorage API for integration (VAAI) table support talking about something different and confused as per screenshot below:

    CX4-240f.JPG

    Any kind of advice and suggestion would be greatly appreciated.

    Thank you

    Al

    In my view, that he won't be problem in the environment. If it is not compatible does not mean that it won't work but simply means its not supported. You could talk to VMware guy once lifting a SR or something. And sorting to be on the safer side. These are things that you can't take risks with because that its your storage array that we are talking about.

  • table update without firing and the deactivation of the trigger

    Hi team,

    I have a task like updating a table which consists of a trigger. But the thing is that the table should be amended without the trigger to fire. And even we can't disable the trigger also due to some ongoing cases. Is there a solution for this? I use Oracle 10 g.

    Thanks in advance.

    If the trigger is only on the update, then try to remove and insert the lines instead.

  • How to understand if the table update or obsolete?

    Hello Experts

    I use the following to understand that the picture is up-to-date or out-of-date. However, it is said that the picture is not expired, but when I check the number of lines of user_tables is does not not to the actual number of lines. The difference is 272132. Is this normal? Normally, about 50000 rows are inserted in the table of responses a day.

    My other question is, are there other ways to ensure that statistics on the table are updated or not? What do you think?

    Connected to:

    Oracle Database 11 g Enterprise Edition Release 11.2.0.1.0 - 64 bit Production

    With partitioning, OLAP, Data Mining and Real Application Testing options

    SQL > select stale_stats from the user_tab_statistics where table_name = "ANSWERS";

    STA

    ---

    NO.

    SQL > select num_rows from user_tables where table_name = 'RESPONSES;

    NUM_ROWS

    ----------

    18525435

    SQL > select count (*) responses;

    COUNT (*)

    ----------

    18797567

    Note: by the way what do I do in order to write the code in code view? I used {code}, but it doesn't work.

    Thanks in advance.

    Hello

    The NUM_ROWS in USER_TAB_STATISTICS will be updated when you GATHER STATISTICS on the table. Check the column LAST_ANALYZED in USER_TAB_STATISTICS, which indicates if the STATISTICS were gathered again on the RESPONSES of the Table. If collect you statistics on the RESPONSE table now then NUM_ROWS will reflect the most accurate value.

    Normally after 'significant' DML (INSERT / UPDATE/DELETE) on a table, it is recommended to collect statistics.

    DBMS_STATS documentation describes this http://docs.oracle.com/cd/B28359_01/appdev.111/b28419/d_stats.htm#CIHBIEII

    In addition,

    Use the Advanced Editor and > to select image formatting.

    Demonstration of Table statistics collection adding...

    IMPLEMENT...

    > drop table tst

    table deleted TST.

    > format table_name col A10

    > alter session set NLS_DATE_FORMAT = "dd-mm-yyyy HH24:mi:ss.

    session the changed VALUE.

    > create table tst (c number)

    table created TST.

    > insert in TCT select level c. from dual connect by level<>

    99 inserted rows.

    > validation

    committed.

    We will collect statistics on the TST table...

    > exec ('HR', 'TST') SYS.dbms_stats.gather_table_stats

    anonymous block filled

    > select table_name, num_rows, last_analyzed from user_tables where table_name = 'TST '.

    TABLE_NAME, NUM_ROWS LAST_ANALYZED

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

    TCT 99 04/12/2013-17:58:51

    NUM_ROWS account (about) the correct number of rows.

    We will insert several lines and check the statistics.

    > insert in TCT select level c. from dual connect by level<>

    999 inserted rows.

    > validation

    committed.

    > select table_name, num_rows, last_analyzed from user_tables where table_name = 'TST '.

    TABLE_NAME, NUM_ROWS LAST_ANALYZED

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

    TCT 99 04/12/2013-17:58:51

    NOTE: The NUM_ROWS and LAST_ANALYZED have not changed... YET.

    > exec ('HR', 'TST') SYS.dbms_stats.gather_table_stats

    anonymous block filled

    > select table_name, num_rows, last_analyzed from user_tables where table_name = 'TST '.

    TABLE_NAME, NUM_ROWS LAST_ANALYZED

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

    TST 1098 17:58:52 04/12/2013

    Now we have complete and up-to-date statistics.

    Hope it will be useful.

    VR,

    Sudhakar

  • Error in FUSION: 2 Tables update

    Hello

    I get the error message when trying to update of 2 tables:

    MERGE INTO table_b dst

    WITH THE HELP OF)

    SELECT

    group_id, detail_id, line_id header_id

    FROM table_a

    )               src

    ON)

    DST.header_id = src.header_id

    AND dst.line_id = src.line_id

    AND dst.detail_id = src.detail_id

    )

    WHEN MATCHED THEN UPDATE SET det. GROUP_ID = src.group_id

    N.B:GROUP_ID is preent in both tables (table_a table_b)

    Error when issuing the command

    Error in the command line column: 14:35

    Error report:

    SQL error: ORA-00904: "DET". "' GROUP_ID ': invalid identifier

    00904, 00000 - '% s: invalid identifier '.

    * Cause:

    * Action:

    Check your alias in the UPDATE clause

  • Run DA plsql code table updated using the click of checkbox

    Hello
    I have a box with action Dynamics plsql code to update a table when event = click/change, but only when the box is turned "on" everything seems to be ok, but the code plsql for updating the table does not work because the record in the table is not updated. Any help on this pls?

    Tell us is there a LOV for item checkbox?

    Try sth like this:

    Lets assume the id box is P1_CHECK.
    Interior check point to put the list of values like this:

    
            STATIC:CheckMe;1
    
        
    

    Then, when you create a dynamic action, put smth like this:

        Event: Clicked
        Selection Type: Item
        Item: P1_CHECK
        Condition: equal to
        Value: 1
        
    

    or

        Event: Clicked
        Selection Type: Item
        Item: P1_CHECK
        Condition: JavaScript expression
        Value: $x('P1_CHECK_0').checked
        
    

    Hope this helps you, Mimi

    Published by: Mimi on October 28, 2012 21:06

    Published by: Mimi on October 28, 2012 21:09

  • Oracle 9 - triggering a delete on a table update

    How,

    I'm under 9.2.0.5.0 on Solaris and I would like your help on the following scenario.

    Have a table that stores information about a certain status of an object. Assume that the table could be made by two fields only

    CardID
    Card_status

    Our application updates the Card_status based on the lifecycle of this object. For a specific status ("used"), we would like to 'move' the record in this table on another table and remove them from the original table.

    I did a trigger to first create the record even on the secondary table and that works fine, but I would also delete the original record in the primary table. I created another INSERT trigger on the secondary table to delete the record from the primary table, but once the update status of the "used" on the primary card I get "is changing, function of triggering/can not see" because the transaction is managed as a single a (create the folder on the secondary table and delete on the primary).

    Is it possible to handle this? Can schedule a task for this in the background, but if there was a chance to do it automatically with a trigger would be better for me.

    Thank you!

    Mike

    albertone wrote:
    tried but got an impasse, probably because of two operations (the update that triggers a and the release removes one) access the record and so is not the transaction.

    Nevermind any autonomous transaction did not - it would have been easy. ATs must also be carefully monitored to ensure that the data is not otherwise be stripped.

    Can take you a step back? Instead of delete directly, you can save the primary key of the row to be deleted in a table (global temporary table perhaps), issuing a block delete by using the list of tables in a second time?

  • Update a table with a query that uses the table updated

    Hi This is my request. It's a mistake, but I hope that the basic idea may carry out. Cost_before_Decision is a column by using an alter table statement, I added:
    UPDATE fraud_nov_14_final
    SET Cost_before_Decision = (select Cost_Prior 
                                from    fraud_nov_14_final ff
                                      ,(select cla_case_no, sum(case when decline = 1 or decline = 2  
                                                                  THEN (nvl(total_cost_adj_old,0) + nvl(decline_estimate,0)) 
                                                                  ELSE Total_Cost 
                                                                  END) Cost_Prior
                                        from reporting.ci_final@test
                                            group by cla_case_no) z
                                                    where ff.cla_case_no = z.cla_case_no)
    Error I get is:
    Error report:
    SQL error: ORA-01427: einreihig subquery returns multiple rows
    01427 00000 - "einreihig subquery returns several lines.

    Thanks in advance for your help:

    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

    Try this

    update fraud_nov_14_final a
       set cost_before_decision = (
                        select cost_prior
                          from (
                             select cla_case_no, sum(case when decline = 1 or decline = 2  then (nvl(total_cost_adj_old,0) + nvl(decline_estimate,0)) else total_cost end) cost_prior
                               from reporting.ci_final@test
                             group by cla_case_no
                               ) b
                                   where a.cls_case_no = b.cls_case_no
                         )
    
  • Tempting table update query

    I'm trying to update a table from a table looping on but not lucky to have. It doesn't seem to be much info out there on how to do, what I found is related to a loop of requests in the tables (the reverse of course). It seems it should be simple enough to the test table is;

    (salt, optiontype_ID)

    [1] [1] blue

    [1] [2] 65

    [2] [1] white

    [2], [2] 73

    And my attempt...

    < cfloop index = 'x' = '1' to = "#arrayLen (arr1 [salt]) #" >

    < cfloop index = 'y' = '1' to = "#arrayLen (arr1 [optiontype_ID]) #" >

    "< datasource =" "#request.dsn # cfquery" username = "#request.dsnUsername #" password = "#request.dsnPassword #" >

    Update tbl_skuoptions

    Set the argument option_name = ' #arr1 [salt] #'

    where option_Type_ID = ' #arr1 [optiontype_ID] #'

    < / cfquery >

    < / cfloop >

    < / cfloop >

    Any ideas or even a slap upside the head of Dan would be appreciated.

    Thank you!

    David

    You must do something to build your table.  At the stage when you complete each row, couldn't update you your db instead?

  • Table update with several links

    I'm trying to update a field called Active in a table called MemberEnrollment. I have another table called EnrollmentHistory. If the MemberKey, EnrollmentDate, EndDate is using a join, I would update to be level on any Y. The below coding, that's what I have so far but I get an error message saying "einreihig subquery returns several lines." I'm sure I need an another subquery, but I don't know what to put. Thank you

    UPDATE MemberEnrollment
    The Active VALUE =
    (SELECT 'Y' AS active
    OF MemberEnrollment, EnrollmentHistory
    WHERE MemberEnrollment.MemberKey = EnrollmentHistory.MemberKey AND
    MemberEnrollment.EnrollmentDate = EnrollmentHistory.EnrollmentDate AND
    MemberEnrollment.EndDate = EnrollmentHistory.EndDate)

    Maybe this? Not tested.

    UPDATE   MemberEnrollment
       SET   Active       = 'Y'
     WHERE   EXISTS
                (SELECT   'x' Active
                   FROM    EnrollmentHistory -- You dont need to join MemberEnrollment again.
                  WHERE       MemberEnrollment.MemberKey = EnrollmentHistory.MemberKey
                          AND MemberEnrollment.EnrollmentDate = EnrollmentHistory.EnrollmentDate
                          AND MemberEnrollment.EndDate = EnrollmentHistory.EndDate)
     
    

    G.

Maybe you are looking for