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


Please Help Members By Posting Answers For Below Questions

What are the uses of db2 optimizer?

819


What is the purpose of rollback and commit?

597


What is the function of logging in the db2 database?

647


Define data page.

635


What is the reason behind not using select * in embedded sql programs?

607






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.

2155


List out the three types of page locks that can be held.

689


What is copy pending status in db2?

638


what is db2 restart?

1695


What is declare cursor?

615


When the like statement is used?

640


Explain about cursor stability?

627


How and when does the db2 enforces the unique key?

619


What is the difference between cursor and select statement?

617


How to retrieve rows from a db2 table in embedded sql?

732