Only select statements work (update/insert hang)

Hi, I am running CF MX version 7,0,2,142559 Standard Edition
and ColdFusion is hanging everytime I attempt an insert or update
statement again Oracle 8i and 9i using the jdbc thin driver and an
odbc socket driver.
Select statements work fine. I have tried everything I could
think of and I get the same results. All rights are given to the
datasource and the user. I can do insert and update statement via
another application (Toad) with the same Oracle user.
Any suggestions??? I don't see any hot fixes for this but
that doesn't mean one doesn't exist.
Also, many times it causes the system cpu utlization to stick
at 100% until I restart ColdFusion.
Thanks for any help.

Hi,
I had similar results on Oracle 10G while using cfmx 7.02. I
actually updated the macromedia_drivers.jar from the coldfusion
support site.
http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=42dcb10a
An update to the datadirect JDBC drivers. Try that. If not,
make sure you have the latest JDBC drivers from Oracle. Since
previous versions would make the update/insert;s hang.

Similar Messages

  • Lock Table and permit only SELECT-Statement

    Hi all,
    can I lock a Table and permit only SELECT-statements on a Table?
    Regards
    Leonid

    Hi Kamal,
    I would like to configure it in such a way that if I implement the SELECT statement, another user can't insert
    a data into the table.
    If it is possible, I even the LOCK would like in such a way to configure the fact that the entry of the user arrives into the buffer and if the table is unlocked, all lines from the Buffer again into the table.
    I make it in such a way:
    SQL Script script_test.sql:
    set echo off
    set verify off
    set pagesize 0
    set termout off
    set heading off
    set feedback off
    lock table mytable in share row exclusive mode;
    spool c:\Temp\script_info.lst
    select id||'|'||dae||'|'||name||'|'||name1||'|'||hiredate
    ||'|'||street||'|'||nr||'|'||plznum||'|'||city
    ||'|'||email||'|'||telephon||'|'||cddfeas||'|'||number
    ||'|'||why||'|'||fgldwer||'|'||wahl||'|'||adress
    ||'|'||las
    from mytable
    where las is null
    spool off
    spool c:\Temp\select_from_all_tables.lst
    select *
    from all_tables
    order by owner
    spool off
    spool c:\Temp\select1_from_all_tables.lst
    select *
    from all_tables
    order by owner
    spool off
    update mytable
    set las = 'x';
    commit;
    set feedback on
    set heading on
    set termout on
    set pagesize 24
    set verify on
    set echo on
    Afterwards I start another session:
    insert into briefwahl
    values(38,'11.06.2003 09:37','Test','Test','01.01.1990',
    'Test','12','90000','Test',
    '[email protected]','12345657','test','123',
    'test','test','test','test',
    null);
    Then I go into the first session and start script. And I go immediately into the second session and do commit; And although I have the table closed, the new entries are spent also with spool into the .lst-File. Why, I do not understand. And in the table all lines become updated.
    Regadrs
    Leonid
    P.S. Sorry for my English. I have write with translator.

  • All SELECT statements work except of SELECT *

    Hi,
    I have one table with 2 rows in Oracle 10.1.0.2.0
    All SELECT statements work (e.g. SELECT COUNT(*) FROM, SELECT COLUMNNAME FROM TABLE, etc.)
    But when I execute SELECT * FROM it never shows any response in SQLPlus. I can view the data with Enterprise Manager Console - using View/Edit Content.
    How this can be caused?
    Thanks for reply.

    Hi,
    I don't get any error. I enter the SELECT * FROM statement run it and cursor jumps to next line and is blinking forever...
    So I got no error response from database.
    SELECT COLUMNNAME FROM works normally.
    As I wrote the machine with database is probably used over its limits - I'm not DBA but SGA is set up to use about 90% of memory (as I learnt from other forums recomendation for Solaris/Sun is about 40%).
    Unfortunatelly I have just 2 rows in my table. There are metadata in the table which are needed to get info about other tables in the database.
    So I am wondering why is the database able to work normally but doesn't response to this statement. I run queries on other tables in database with millions of records, but I am not able to run this query.
    Can be table somehow corrupted? It is strange...
    Regards,
    Petr

  • Only else statement works

    Morning,
    Would someone please look this over? I can't seem to get it to work properly. What I am trying to do is insert the substr into another table if it is found otherwise insert a default date. Right now only the default date is inserting into the table temphone1 for every row even though there are many strings that should have been also inserted.
    oracle 11g redhat linux.
    declare
    cursor c_1 is
    select * from raw_data
    where rownum < 500;
    begin
    for c_rec in c_1
    loop
    if regexp_substr(c_rec.date_time,'^(0?[1-9]|1[0-2])/(0?[1-9]|[1-2][0-9]|3[0-1])/([[:digit:]]{4})') is not null
    then
    update temphone1 set new_time= regexp_substr(c_rec.date_time,'^(0?[1-9]|1[0-2])/(0?[1-9]|[1-2][0-9]|3[0-1])/([[:digit:]]{4})');
    else
    update temphone1 set new_time = to_date('23/NOV/2008','DD/MON/YYYY');
    end if;
    commit;
    end loop;
    end;
    Thank you in advance that you can give me.
    regards,
    al

    Hi, Al,
    afaltyn wrote:
    Morning,
    Would someone please look this over? I can't seem to get it to work properly. What I am trying to do is insert the substr into another table if it is found otherwise insert a default date. Right now only the default date is inserting into the table temphone1 for every row even though there are many strings that should have been also inserted.
    oracle 11g redhat linux.
    declare
    cursor c_1 is
    select * from raw_data
    where rownum < 500;
    begin
    for c_rec in c_1
    loop
    if regexp_substr(c_rec.date_time,'^(0?[1-9]|1[0-2])/(0?[1-9]|[1-2][0-9]|3[0-1])/([[:digit:]]{4})') is not null
    then
    update temphone1 set new_time= regexp_substr(c_rec.date_time,'^(0?[1-9]|1[0-2])/(0?[1-9]|[1-2][0-9]|3[0-1])/([[:digit:]]{4})');
    else
    update temphone1 set new_time = to_date('23/NOV/2008','DD/MON/YYYY');
    end if;
    commit;
    end loop;
    end;
    /Never write, let alone post, unformatted code.
    Indent the code to show the scope of statements such as BEGIN, LOOP and IF.
    When posting any formatted text (not just code) on this site, type these 6 characters:
    \(small letters only, inside curly brackets) before and after each section of formatted text, to preserve spacing.
    Whenever you have a problem, please post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) from all tables.
    Also post the results you want from that data, and an explanation of how you get those results from that data, with specific examples.
    If you're asking about a DML statement, such as UPDATE, the CREATE TABLE and INSERT statements should re-create the tables as they are before the DML, and the results  will be the contents of the changed table(s) when everything is finished.
    Always say which version of Oracle you're using.
    Is temphohne1.new_time a DATE?  If so, don't try to assign a VARCHAR2 value to it, like you're doing here:update temphone1 set new_time= regexp_substr(c_rec.date_time,'^(0?[1-9]|1[0-2])/(0?[1-9]|[1-2][0-9]|3[0-1])/([[:digit:]]{4})');
    Is temphohne1.new_time a VARCHAR2?  If so, don't try to assign a DATE value to it, like you're doing here:update temphone1 set new_time = to_date('23/NOV/2008','DD/MON/YYYY');
    You probably want to add WHERE clauses to both UPDATE statements.  As posted, each of them is updating every row in temphone1.  Perhaps you want something likeUPDATE temphone1
    SET      new_time = '23/NOV/2008'     -- Assuming new_time is a string
    WHERE     column_1 = c_1.column_a;

  • Select statement works in 8.1.5  but does not work in 8.1.7 why???????

    I have written a select statement as part of cursor in a
    Database Trigger, the following statement works fine in Oracle
    8i ver 8.1.5.0 but the same statement returns error PLS-00103
    (Parser related error) in Oracle 8i version 8.1.7.0!!!!!!
    The error shown is
    PLS-00103Encountered the symbol")" when expecting one of the
    following:
    from
    The Sql statement in a Database Trigger is as follows
    select opn_stk,iss_qty,rec_qty,ROWID
    from mnth_bal
    where to_date(lpad(to_char(month),2,'0')||to_char
    (year),'mmyyyy') >= SYSDATE AND
    REV_NO = :NEW.REV_NO AND
         ITEM_STOCK_ITEM_CD = :NEW.ITEM_CD and
    unit_cd = :NEW.unit_cd and
    store_cd = :new.store_cd
    order by to_date(lpad(to_char(month),2,'0')
    ||to_char(year),'mmyyyy') ;
    Can any one please tell me whats the problem ? In 8.1.5.0 the
    same statement in the trigger runs absolutely fine &
    compiles.Because of this problem the trigger is not compiling in
    8.1.7.0
    Would be grateful for any solutions given

    Relating line numbers in compile errors to source code.
    Oracle does not count blank lines in line numbers. Commenting
    with "--" blank lines or deleting blank lines will make the line
    counter more accurate.
    Oracle counts comments delimited with /*...*/ as one line, no
    matter how many lines are in the source code. Using only "--"
    will make the line counter more accurate.
    Oracle does not count lines before the PL/SQL block DECLARE when
    compiling triggers. (CREATE ... TRIGGER....FOR EACH...WHEN(...))
    parts of the syntax are not counted. The line in the source
    code with the DECLARE of the trigger's PL/SQL block will be line
    1.
    Hint: Avoid uncertainty. Use "SHO ERR TRIGGER <trigger_name>"
    when looking at compile problems.
    Good Luck....

  • How to convert this select statement into update

    Hai All
    I have two table Namely Daily_attend , Train_mast
    Daily_attend Consist Of fields are Train_mast consist Of fields are
    Name varchar Train no var
    Empcode Num T_date date
    Intime Date Train_name var
    Outtime date Late_hrs var
    IND_IN Number
    IDE_OUT Number
    Attend_date date
    I need to update IDE_IN In Daily_attend table Depend upon late_hrs in the Train_mast table
    I have got Through in select statement This is my select statement
    select to_number(TO_DATE(TO_CHAR(Intime,'DD-MON-YYYY')||' '||
    TO_CHAR(0815,'0000'),'DD-MON-YYYY HH24:MI')+late_hrs/(24*60)-intime
    ) * 24*60 from dail_Att,train_mast;
    How can i convert it to update
    Any help is highly appricateable
    Thanks In Advance
    Regards
    Srikkanth.M

    Srikkanth,
    Try this code. And 1 more thing, i can't see any WHERE condition to join between the 2 tables DAIL_ATT, TRAIN_MAST.
    UPDATE DAIL_ATT A SET A.IDE_IN = (SELECT TO_NUMBER(TO_DATE(TO_CHAR(INTIME, 'DD-MON-YYYY')|| ' ' || TO_CHAR(0815, '0000'), 'DD-MON-YYYY HH24:MI') + LATE_HRS / (24 * 60) - INTIME) * 24 * 60 FROM TRAIN_MAST B WHERE <condition>);Regards,
    Manu.
    If my response or the response of another was helpful or Correct, please mark it accordingly

  • Error occuring in SELECT statement FOR UPDATE when using WITH cluase

    Hi,
    Iam using oracle 11g version
    Iam having a query with fetch records for update insid with cluase as
    cursor c1 is
    With abc as (
    SELECT col1,col2 from table1, table2 where < condition>
    for update of <col1> skip locked
    select * from abc,table3 where <condition>
    union all
    select * from table4 where id not in (select * from abc)
    if i add "for update of <col1> skip locked" this cluase
    iam getting error ORA-00907: missing right parenthesis
    when i remove "for update of <col1> skip locked" the block is working fine..
    can i know why error is occuring i

    Hi, first of all, your placing of "for update" clause is wrong. It should be at the end like:
    With abc as (
    SELECT col1,col2 from table1, table2 where < condition>
    select * from abc,table3 where <condition>
    union all
    select * from table4 where id not in (select * from abc)
    for update of <col1> skip locked;Second, if you try to compile it with this syntax then you will get a new error.
    ORA-01786:     FOR UPDATE of this query expression is not allowed
    Cause:     An attempt was made to use a FOR UPDATE clause on the result of a set expression involving GROUP BY, DISTINCT, UNION, INTERSECT, or MINUS.
    Action:     Check the syntax, remove the FOR UPDATE clause, and retry the statement.So, you will not be successful with the union clause in your query.

  • Can only select English font when insert flash media

    I am using Windows XP SP2 Chinese version and installed
    Macromedia Studio 8, but I found a big problem when I using
    Dreamweaver 8. When I insert flash media by (Insert -> Media
    -> Flash Text or Flash Button), I cannot select Chinese font.
    But if I insert general text, I can select chinese font.
    Please help me to fix the problem. Thank a lot.

    Saiman23 wrote:
    > I am using Windows XP SP2 Chinese version and installed
    Macromedia Studio 8,
    > but I found a big problem when I using Dreamweaver 8.
    When I insert flash media
    > by (Insert -> Media -> Flash Text or Flash
    Button), I cannot select Chinese
    > font.
    Flash media works only with TrueType fonts. This restriction
    applies to
    all languages, including English.
    David Powers, Adobe Community Expert
    Author, "The Essential Guide to Dreamweaver CS3" (friends of
    ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • Converting SELECT Statement into UPDATE

    Hi All,
    Running SQL Server 2008 R2.  I have the following SELECT query, which is returning the desired results.
    SELECT DISTINCT
    [x].[AccountNo],
    [x].[AvgAccountLen],
    CASE
    WHEN LEN([AccountNo]) > 6 THEN LEFT([AccountNo], 6)
    ELSE [AccountNo] + REPLICATE('0', [AvgAccountLen] - LEN([AccountNo]))
    END AS [NewAccountNo]
    FROM
    SELECT DISTINCT
    [AccountNo],
    SELECT TOP 1
    LEN([AccountNo])
    FROM
    [dbo].[Table]
    WHERE
    [AccountNo] > 0
    GROUP BY
    [AccountNo]
    ORDER BY
    COUNT(*) DESC
    ) AS [AvgAccountLen]
    FROM
    [dbo].[Table]
    ) AS [x]
    WHERE
    LEN([AccountNo]) <> [AvgAccountLen]
    Below are results, which again are what I'm looking for.
    AccountNo AvgAccountLen NewAccountNo
    4200 6 420000
    4250 6 425000
    42000 6 420000
    4030 6 403000
    4460 6 446000
    4250000 6 425000
    4520000 6 452000
    Long story short is that I've been left to clean up a partially-completed task.  I need to conduct an update on Table that pads (or trims) the account numbers accordingly.  Further, this process affects multiple entities which is why I can't simply
    use a static pad/trim value of 6 (this particular entity returns 6, there could be other entities with 4, 8, etc.).  AvgAccountLen may not be the most appropriate column name either - it's a representation of the most frequently-occurring value length
    (I have already confirmed that the result returned for this value is correct in each entity).  How would I go about writing a UPDATE statement to accomplish this?
    Any help is greatly appreciated!
    Best Regards
    Brad

    Can you provide your example data as a table to compliment your expected result?
    I'm thinking something like this may help:
    DECLARE @accounts TABLE (accountNo INT, avgAccountLen INT, newAccountNumber INT)
    INSERT INTO @accounts (accountNo, avgAccountLen) VALUES
    (4200 , 6),
    (4250 , 6),
    (42000 , 6),
    (4030 , 6),
    (4460 , 6),
    (4250000, 6),
    (4520000, 6)
    UPDATE @accounts
    SET newAccountNumber = LEFT(CAST(accountNo AS VARCHAR)+REPLICATE('0',avgAccountLen),avgAccountLen)
    FROM @accounts
    SELECT *
    FROM @accounts
    Don't forget to mark helpful posts, and answers. It helps others to find relevant posts to the same question.

  • How select statement works

    i like to know the in depth details how oracle process the select query...how it reads from the data block

    Straight from the concept manual:
    http://download.oracle.com/docs/cd/B10501_01/server.920/a96524/c01_02intro.htm#3437
    An Example of How Oracle Works
    The following example describes the most basic level of operations that Oracle performs. This illustrates an Oracle configuration where the user and associated server process are on separate machines (connected through a network).
    An instance has started on the computer running Oracle (often called the host or database server).
    A computer running an application (a local machine or client workstation) runs the application in a user process. The client application attempts to establish a connection to the server using the proper Oracle Net Services driver.
    The server is running the proper Oracle Net Services driver. The server detects the connection request from the application and creates a dedicated server process on behalf of the user process.
    The user runs a SQL statement and commits the transaction. For example, the user changes a name in a row of a table.
    The server process receives the statement and checks the shared pool for any shared SQL area that contains a similar SQL statement. If a shared SQL area is found, then the server process checks the user's access privileges to the requested data, and the previously existing shared SQL area is used to process the statement. If not, then a new shared SQL area is allocated for the statement, so it can be parsed and processed.
    The server process retrieves any necessary data values from the actual datafile (table) or those stored in the SGA.
    The server process modifies data in the system global area. The DBWn process writes modified blocks permanently to disk when doing so is efficient. Because the transaction is committed, the LGWR process immediately records the transaction in the online redo log file.
    If the transaction is successful, then the server process sends a message across the network to the application. If it is not successful, then an error message is transmitted.
    Throughout this entire procedure, the other background processes run, watching for conditions that require intervention. In addition, the database server manages other users' transactions and prevents contention between transactions that request the same data.

  • Select statement after Update statement under autocommit with RAC

    Hi,
    I've met a problem when developing my application with 10g RAC (3 machines). I am using open jdk 1.6.0 on linux platform with kernel release 2.6.18-128.e15PAE, my app using spring with oracledatasource to establish the database connection with autocommit. The situation as below:
    my application sends SMPP requests and receives SMPP responses, when receiving SMPP responses, my app update the response details to related record in DB. For some concatenated messages, my app need to check whether all responses of the related concatenated message are received, if all received, my app update the final status of the message.
    it is found that for some concatenated messages, all responses are received successfully, i.e. can be found in the database that the details of the responses are updated, however the final status of the message is not updated as expected. After further investigations to the database records and application logs, those cannot be updated with response returning almost at the same second, however they are manipulated one by one, not multi-thread. From the log of my app, it shown the dealing of the second response is started in the same second when the dealing of the first response is completed. It seems like when dealing the second response, it cannot "see" the first response is updated such that both responses find the message is not completed.
    Wonder under what condition would this happen? my db config as below:
    <bean id="dataSource" class="oracle.jdbc.pool.OracleDataSource" destroy-method="close">
    <property name="driverType" value="oracle.jdbc.driver.OracleDriver" />
    <property name="URL" value="jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=dbhost1)(PORT=1521))(ADDRESS=(PROTOCOL=TCP)(HOST=dbhost2)(PORT=1521))(ADDRESS=(PROTOCOL=TCP)(HOST=dbhost3)(PORT=1521))(LOAD_BALANCE=yes)(CONNECT_DATA=(SERVICE_NAME=ha_bss)(SERVER=DEDICATED)))" />
    <property name="user" value="dbuser" />
    <property name="password" value="dbpassword" />
    <property name="connectionCachingEnabled" value="true" />
    <property name="connectionCacheProperties">
    <props merge="default">
    <prop key="InitialLimit">10</prop>
    <prop key="MinLimit">10</prop>
    <prop key="MaxLimit">2000</prop>
    <prop key="AbandonedConnectionTimeout">0</prop>
    <prop key="ConnectionWaitTimeout">120</prop>
    <prop key="validate-connection">true</prop>
    <prop key="validate-connection-statement">SELECT SYSDATE FROM DUAL</prop>
    <prop key="factory-class">oracle.jdbc.pool.OracleDataSourceFactory</prop>
    </props>
    </property>
    <property name="ONSConfiguration" value="nodes=dbhost1:6200,dbhost2:6200,dbhost3:6200"/>
    <property name="fastConnectionFailoverEnabled" value="true"/>
    </bean>
    thanks

    This is not likely to be a JDBC issue at all. It is likely that separate connections are being used
    for the separate threads, and they may be to different RAC nodes. You must configure your
    DBMS so there is zero latency between the nodes, else there may be some delay between
    when one node changes data and another can see it.
    HTH,
    Joe

  • Select Statement inside the insert statement

    I need to insert the values into nav_pending by selecting the values from nav table
    when i write this code its giving missing expression error
    Can i know what is the problem??
    can i use select inside insert in oracle????
    INSERT INTO NAV_PENDING (ACCOUNT_NUM,PERIOD_DTE)
    VALUES
    SELECT ACCOUNT_NUM,PERIOD_DTE
    FROM NAV where ACCOUNT_NUM=1;
    Thanks in advance

    Leave the values keyword
    INSERT INTO NAV_PENDING (ACCOUNT_NUM,PERIOD_DTE)
    SELECT ACCOUNT_NUM,PERIOD_DTE
    FROM NAV where ACCOUNT_NUM=1;

  • Is it possible to convert only select statement into procedure in Oracle

    Hi, Just i wanted to convert the below query in to procedure.Procedure input is 'P.Column1'
    SELECT
    P.Column1 AS PRODUCT,
    D.Column2 AS Column2N,
    D.Column3 AS LongColumn2iption,
    P.Column4 AS PRODUCICE,
    D.Column5 AS BilliuctID,
    E.Column6 As Impaenue,
    C.Column7 AS EffecDATE,
    FROM Table1 P, Table2 D,Table3 E,Table4 C
    WHERE
    P.Column1=D.Column1 and
    P.Column1=C.PROD_COMPONENT_ID and
    P.SETID=D.SETID and
    D.Setid =E.Setid and
    P.Setid =E.Setid and
    P.Setid =C.Setid and
    D.Column1=E.Column1 and
    P.Column1=E.Column1 and
    C.Column1<>'CONSUMER TARIFFS' and
    P.Column1 in('')

    Something like:
    SQL> var my_Data refcursor
    -- Anonymous block
    SQL> begin
      2  open :my_data for select 1,2 from dual;
      3  end;
      4  /
    PL/SQL procedure successfully completed.
    SQL> print :my_Data
             1          2
             1          2You can then convert the above anonymous block in to a procedure.

  • Re: Select statement fails under Express, but works underForte when usi

    Hi there,
    I have logged this with Forte and it as been recognized as a bug ( #46554 ).
    The Express methods you need to look at if you want to modify this behavior
    are :
    1 - BusinessQuery.BuildQuery() starting at line 217
    2 - SqlQuery.GetWhereText() starting at line 60
    We have gotten around the problem by modifying what Express generates by
    changing it from ( col1, col2 ) in ( select col1, col2 ... ) to ( col1 +
    col2 ) in ( select col1 + col2 ... )
    Just one thing i'm not sure that the '+' is standard on every DBMS for
    concatenation.
    We are using SQL Server 6.5
    Hope this helps.
    Christian Boult ([email protected])
    Programmeur - Analyste
    Influatec inc.
    -----Original Message-----
    From: Metcalf, Roger <[email protected]>
    To: '[email protected]' <[email protected]>
    Date: Thursday, May 06, 1999 1:55 PM
    Subject: Select statement fails under Express, but works under Forte when
    using DB2
    Express sometimes (e.g. with nested windows) generates SQL with a select
    subquery, e.g.
    select x1, x2 from t1 where (x1,x2) in (select x1,x2 from t2.....)
    This fails on DB2 with a message that the comma in the where clause (x1,x2)
    is not allowed.
    This works on Oracle.
    Does anyone have a workaround or other suggestion?
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

    joe.meszaros wrote:
    (SELECT ? AS Id, ? AS UserBytes FROM dual)I suggest that you test to see if that statement and ONLY that statement works at all.
    There are rules for bind variables and that statement certainly looks suspicious.
    If you can't get that to work then the rest of the attempt is pointless.

  • Re: Select statement fails under Express, but works underForte whenusin

    Roger,
    This was a bug with Express and was fixed in Express E.2.0.L.0.
    You might be able to get more details on Forte's website.
    Ajith Kallambella M
    From: "Metcalf, Roger" <[email protected]>
    Reply-To: "Metcalf, Roger" <[email protected]>
    To: "'[email protected]'" <[email protected]>
    Subject: Select statement fails under Express, but works under Forte
    whenusing DB2
    Date: Thu, 6 May 1999 11:55:19 -0400
    Express sometimes (e.g. with nested windows) generates SQL with a select
    subquery, e.g.
    select x1, x2 from t1 where (x1,x2) in (select x1,x2 from t2.....)
    This fails on DB2 with a message that the comma in the where clause (x1,x2)
    is not allowed.
    This works on Oracle.
    Does anyone have a workaround or other suggestion?
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>_______________________________________________________________
    Get Free Email and Do More On The Web. Visit http://www.msn.com
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

    joe.meszaros wrote:
    (SELECT ? AS Id, ? AS UserBytes FROM dual)I suggest that you test to see if that statement and ONLY that statement works at all.
    There are rules for bind variables and that statement certainly looks suspicious.
    If you can't get that to work then the rest of the attempt is pointless.

Maybe you are looking for