select device_id, gpa, age from user_profile order by gpa asc, age asc;
从名为user_profile
的表中选择device_id
(设备 ID)、gpa
(平均绩点)和age
(年龄)这三列的数据。
然后,按照gpa
列的值升序排列,如果gpa
值相同,则再按照age
列的值升序排列。
select device_id, gpa, age from user_profile order by gpa asc, age asc;
从名为user_profile
的表中选择device_id
(设备 ID)、gpa
(平均绩点)和age
(年龄)这三列的数据。
然后,按照gpa
列的值升序排列,如果gpa
值相同,则再按照age
列的值升序排列。