全部版块 我的主页
论坛 提问 悬赏 求职 新闻 读书 功能一区 学道会
834 0
2020-07-07
-- 限制查询结果数量
-- 查询基本工资最高的前5位员工
select * from emp order by sal desc limit 5;

select * from emp order by sal desc limit 0,5;

-- 查询基本工资第6到10名的员工
select * from emp order by sal desc limit 5,5;

-- 练习:查询最后入职的5位员工
select * from emp order by hiredate desc limit 5;
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群