Jump to content

mysql help


karma_machine

Recommended Posts

With MySQL you can specify more than one column in the ORDER BY clause in your SELECT statement as in:

SELECT * FROM mytable ORDER BY name, number

You can even sort each column differently as in

SELECT * FROM mytable ORDER BY name ASC, number DESC

would give you :

Bill 16

Bob 21

George 21

George 12

Jim 18

Link to comment
https://forums.phpfreaks.com/topic/934-mysql-help/#findComment-3148
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.