题解 | #SQL36 查找后排序#
条件查询的条件放在表的后面。
条件是按照年龄来进行升序排序。
所以需要用到order by,又因为是升序所以为asc。
select device_id, age from user_profile order by age asc;
条件查询的条件放在表的后面。
条件是按照年龄来进行升序排序。
所以需要用到order by,又因为是升序所以为asc。
select device_id, age from user_profile order by age asc;
相关推荐