how to delete perticular row from table
for ex. how you will delete 3rd row from table
please answer
THANKS IN ADVANCE
Answer Posted / anjireddy vintha
delete from tablename where rownum=3
Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
What are the uses of db2 optimizer?
What is the purpose of rollback and commit?
What is the function of logging in the db2 database?
Define data page.
What is the reason behind not using select * in embedded sql programs?
SET is the ANSI standard for variable assignment, SELECT is not. SET can only assign one variable at a time, SELECT can make multiple assignments at once. If assigning from a query, SET can only assign a scalar value. If the query returns multiple values/rows then SET will raise an error. SELECT will assign one of the values to the variable and hide the fact that multiple values were returned (so you'd likely never know why something was going wrong elsewhere - have fun troubleshooting that one) When assigning from a query if there is no value returned then SET will assign NULL, where SELECT will not make the assignment at all (so the variable will not be changed from it's previous value) As far as speed differences - there are no direct differences between SET and SELECT. However SELECT's ability to make multiple assignments in one shot does give it a slight speed advantage over SET.
List out the three types of page locks that can be held.
What is copy pending status in db2?
what is db2 restart?
What is declare cursor?
When the like statement is used?
Explain about cursor stability?
How and when does the db2 enforces the unique key?
What is the difference between cursor and select statement?
How to retrieve rows from a db2 table in embedded sql?