如何获得基于多列的排序输出?
我们可以在ORDER BY子句中指定多个列,以基于这些多个列获取排序的输出。以下是使这个概念更清楚的示例-
mysql> Select * from Student ORDER BY Name, Address;+------+---------+---------+-----------+
| Id | Name | Address | Subject |
+------+---------+---------+-----------+
| 2 | Aarav | Mumbai | History |
| 1 | Gaurav | Delhi | Computers |
| 15 | Harshit | Delhi | Commerce |
| 17 | Raman | Shimla | Computers |
+------+---------+---------+-----------+
4 rows in set (0.12 sec)
以上是 如何获得基于多列的排序输出? 的全部内容, 来源链接: utcz.com/z/338106.html