What do you do to keep the cursor from closing after a
commit?
Answer / guest
You add the keyword "WITHHOLD" to the declare statement of
the cursor
Is This Answer Correct ? | 20 Yes | 0 No |
My DB2 program first read the data from a file and then it look into a table with the data it got from the file.If we did not bind the program , should the file read before SQL execution be success??
What is an inner join, and an outer join ?
Can a primary key have null values? If we try to insert a null value in a primary key column, will it work or give an error code?
What is dbrm? What it contains?
Why might full image copies be faster to implement than an incremental image copy?
select 100 records from million records ?
What is db2 and what is the use of db2 optimizer?
by using cursors , we can access particular records from the table based on some condition, i want to delete those selected records, how can we write a query for this in the program?
What is the use of commit in db2?
i want to know how the commit option works,how it save the changes? it will update the database or what ? where we can see these saved changes?
What does the REORG Utility do?
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 ?