Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how do I select the last 5 rows in informix

Status
Not open for further replies.

cymerman

MIS
Jan 9, 2007
16
US
How do I select the last 5 rows of a table ?
I have to use "order by" I guess.

If this is not possible. How do I select just 5 rows (any rows) of that table ?
 
Use " select first 5 * from <table name> order by <colname> desc
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top