Database Order by question

Problems with WiFi, SQLite ,Bluetooth, WiMax, Proxies, etc...

Database Order by question

Postby Droid123 » Sat Nov 21, 2009 1:28 pm

Hi,

If i do a database query I can sort the query result Cursor by setting the column name to the ORDER parameter.

This works fine, and it sorts the Cursor from lets say Low to High (in case of integers),
but what if i want to sort my Cursor, the other way around, from High to Low??

Does anyone know how to do this?

thanks
Droid123
Experienced Developer
Experienced Developer
 
Posts: 77
Joined: Sat Nov 21, 2009 1:21 pm

Top

Postby Droid123 » Sat Nov 21, 2009 2:22 pm

Never mind, I found out how to do it, just add either ASC or DESC behind the order parameter
Droid123
Experienced Developer
Experienced Developer
 
Posts: 77
Joined: Sat Nov 21, 2009 1:21 pm

Top

Return to Networking & Database Problems

Who is online

Users browsing this forum: Google [Bot] and 5 guests