题解 | #SQL36 查找后排序#

条件查询的条件放在表的后面。

条件是按照年龄来进行升序排序。

所以需要用到order by,又因为是升序所以为asc。

select device_id, age from user_profile order by age asc;
全部评论

相关推荐

迷茫的大四🐶:价格这么低都能满了?
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务