i have a table like this :
Name ADDRESS
Toto 123 ...
Toto 456
ToTo 678
I would like to delete 2 last row...please tell me how to
delete its
Answer Posted / prashant shettar
delete from (select rownumber() over() as rowid from tab1 )
where rowid = ( (select count(*) from tab1) - 1)
Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
How to execute stored procedure in db2 command editor?
What are the bind parameters ibm db2?
Is ibm db2 free?
What does sqlcabc has?
What is the connection string to connect to the DB2 Database ?
How do you simulate the explain of an embedded sql statement in spufi/qmf?
What is the physical storage length of timestamp data type?
What is the role of schema in the db2 database?
What is multi row fetch in db2?
Are views updateable?
i want to maintain uniqueness on pdf without make lf??????????
How can you count the number of rows from a table tab?
What is the difference between bind and rebind in db2?
What is bufferpool in db2?
What is the result of open cursor statement?