on 10-04-2008 6:02 PM
Hi guys help me with this
1) What is the use of update query in jdbc adapter?
2) Why do we use the flag field in jdbc table ?
Hi,
1) What is the use of update query in jdbc adapter?
The purpose of the Update Query in JDBC is to change the status of the processed records in the table.
That is when JDBC query is executed it select the records from the table in the Database and it sends to the Receiver.
After that it executes the Update query to change the status of the processed records in the Table.
2) Why do we use the flag field in jdbc table ?
Flag field in the table is used to identify which record is processed by Jdbc adapter. Initial stage it will have the status as 0 , if it is successfully processed then it will updated to 1.
Based on this we can identify processed records which is done by update query.
Regards
Sridhar Goli
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
Update query can update fields in table based on some condition. For updating any column it will be selecting those columns and updating fields based on condition.
EX - UPDATE table SET field1 = value1 WHERE field2 = value2
We use flag fields in tables to identify a particular case and for that you dont need to compare entire row.
example. to identify a record (row in table) is latest or not you have a flag called ACTIVE. Now if the value is Y for ACTIVE that means the record is latest and value N means record is not latest. For this you have not done compare operations like data < or > or =
Thanks
Gaurav
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
7 | |
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.