MySQL - ORDER BY default ascending or descengind?

0 points
Asked by:
Dirask Community

What is the default order of ORDER BY statement in MySQL, ascending or descending? 

1 answer
0 points
Answered by:
Dirask Community

By default ORDER BY statement sorts the data in ascending order.

You can use:

  • ASC keyword - if you want to sort data in ascending order (just to be sure),
  • DESC keyword - to sort the data in descending order.
0 comments Add comment
Native Advertising
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂