DQL query statement-sort query

Syntax: order by clause

order by sorting field 1 sorting method 1, sorting field 2 sorting method 2...

 

Sort by:

ASC: Ascending order, the default.

DESC: Descending order.

 

Note: If there are multiple sort conditions, the second condition will be judged only when the previous condition values ​​are the same.

 

Guess you like

Origin blog.csdn.net/Jason_LH1024/article/details/103402465