Skip to main content
4 Guests, 0 Users
Welcome, Guest. Please login.

Login with username, password and session length

Recent

Topic: MySQL ORDER BY (Read 2248 times) previous topic - next topic

MySQL ORDER BY

Code: [Select]
ORDER BY status ASC; will return 1,2,3,4.

Code: [Select]
ORDER BY status DESC; will return 4,3,2,1.

Code: [Select]
ORDER BY FIELD(status, 3, 2, 4, 1);