DataGrip
 
Get DataGrip
You are viewing the documentation for an earlier version of DataGrip.

Code Inspection: Redundant ordering direction

Last modified: 13 May 2022

Reports redundant ordering directions like ASC and DESC in ORDER BY clauses.

Example (MySQL):

The ORDER BY keyword sorts the records in the ascending order by default. So, the ASC keyword for a and c columns is redundant.