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?
Answers were Sorted based on User's Feedback
Answer / satty
first declare cursor and select the records you wanted and
then use delete statement with where current of your cursor.
becoz it will help you to delete that particular record
which has been choosed.
if any thing wrong plz intimate
| Is This Answer Correct ? | 8 Yes | 0 No |
Hi Satty
Can you please let us know what command you will use for
delete.
Vaneesh
| Is This Answer Correct ? | 0 Yes | 0 No |
By the way, why to select a signle row using cursor then
delete, if you want to delete all the row mentioned in the
cursor search creteria, simply write a SQL query mentioning
delete where (matching search condition).
| Is This Answer Correct ? | 0 Yes | 2 No |
I need to view the number of tables existing under one particular Owner. Is it possible? If so, pl give the SQL query for this?
Give a brief description of db2 isolation levels?
What is the physical storage length of the data types date, time, and timestamp?
How do you find the maximum value in a column in db2?
If a non-DB2 program calls a DB2 program, the calling program's name will be there in SYSIN of IKJEFT01 and the plan name will be that of the called program. But is a bind needed or a plan has to be created for the non-DB2 program also?
What is collection in db2 bind?
what is SMP/E? and what are the major steps of it? thanks...
Do we need cursor for Count(*)?
Explain about open switch business continuity software?
wht happens if we close cursor with cursor with hold option?
I am having n number of records in a table which consists of emp-name is one of the field among them. Now i want to change the first letter of every name with capital.
Mention the way of highlighting as well as putting a cursor to use in a cobol program.