on 01-17-2013 10:06 AM
Hi Experts,
i am doing JDBC to JDBC scenario, have done with configuration and i am going to test the scenario. its huge data i am sending form sender to receiver it is approx 15k. so i have split the messages, each message have 100 records.i have build a select query and update query in sender channel to get the records from the DB. in Select query it getting 100 records then executing the update query it should be more than 100 records. so that i am unable to send the 15k records to receiver some records are missing. my queries are
select UID, Perner from table where ROWNUM <=100 and flag IS NULL;
my update query is
Update table set flag = 'Y' where Perner in(select Perner form table where ROWNUM <= 100 and flag IS NULL)
please give me approaches to resolve the issue. highly appreciated your help.
regards,
Sanjay.
You set default value for the flag is 0. flag =0 and during update statement set the flag =1. I'm guessing not null where clause cause the problem.
You might want to check these threads
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sanjay,
In the JDBC Sender Scenario, the Where clause condition in SELECT and UPDATE statement should be same
So just change your update staement as
Update table set flag = 'Y' where ROWNUM <= 100 and flag IS NULL
Regard's
Preethi.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.