can we update the table by using cursors can anyone post
the query?
Answer Posted / amar
DECLARE
INT NUMBER:=0;
CURSOR C1 IS
SELECT COL1,COL2 FROM TABLE_NAME;
BEGIN
FOR RC IN C1 LOOP
UPDATE TABLE_NAME SET COL_NAME=RC.COL1,COL_NAME=COL2;
CNT:=CNT+1;
END LOOP;
END;
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is query_cache_limit?
What is reorg?
Explain package in db2 and its advantages?
Differentiate between cs and rr isolation levels? Where do you specify them?
Is db2 free?
In case if at some point of time db2 is down, would that impact the pre-compilation process of a db2-cobol program?
How do I import data from excel to db2?
What are the bind parameters ibm db2?
Discuss about db2 bind?
What type of database is db2?
Is db2 a programming language?
What is page size in db2?
What is null in db2?
Where do you specify them?
Explain the contention situations caused by locks?