题解 | #查找后多列排序#
查找后多列排序
https://www.nowcoder.com/practice/39f74706f8d94d37865a82ffb7ba67d3
select device_id,gpa,age from user_profile ORDER BY gpa ASC,age ASC 从user_profile表中查询device_id,gpa,age三个字段 先根据gpa升序输出,再根据age升序输出
查找后多列排序
https://www.nowcoder.com/practice/39f74706f8d94d37865a82ffb7ba67d3
select device_id,gpa,age from user_profile ORDER BY gpa ASC,age ASC 从user_profile表中查询device_id,gpa,age三个字段 先根据gpa升序输出,再根据age升序输出
相关推荐