Alex Rivera | Logout

How can I reverse the default ordering in MySQL?

Asked 2009-11-27T06:22:17.917
10

In MySQL, when you execute a select SQL statement, there is a default ordering if you don't include a sorting clause. How can I reverse the default ordering? Just add DESC?

Edit
Report

1 Answer

1

Unless you can specify a column name in an ORDER BY clause, you can't use DESC, and you'll have to resort to tricks involving LIMIT to see the last few records.

This would be unsatisfactory, I think.

answered 2009-11-27T06:47:30.893

Your Answer