suppose in my table 10 rows are there , i want to update odd
rows salary as 90000 ? how u do it ? any one help me ? what
do we use here cursor-fetch or normal sql ?
Answer Posted / vaneeshkhurana
Basically we can create a structure where first fetch then
update the fetch 2 times and update once again fetch 2 times
and update once again fetch 2 times and update once... and
keep on fetching 2 times and updating it once till table
code 100 comes.
This will update only the odd rows.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is database reorganization?
What is database manager in db2?
What is coalesce in db2?
Explain about rct.
Mention the location where the output received from explain statement is stored.
How do I copy a table in db2?
What are db2 tables?
What do you mean by cursor?
What happens in bind step in a db2 program?
Explain the benefits you can get from mainframe connect?
List out the buffer pools in db2
How is the value function used?
have 3 tables table1, table2 and table3 which contains employee information. table1 is master table, table2 contains emp details like emp no and so on, table 3 contains emp salary. so if any emp leave company between 25th - 30th of every month it has to get updated in tables. but it is not getting updated. What is the reason.
Before you give the explain statement, what are the prerogatives?
What is the use of predicate?