查询一条记录

查找最晚入职员工的所有信息

http://www.nowcoder.com/questionTerminal/218ae58dfdcd4af195fff264e062138f

第一种:采用内置函数方法的形式(max)
select * from employees where hire_date=(select Max(hire_date) from employees);
第二种:采用降序的形式+limit实现
select * from employees
order by hire_date desc
limit 0,1;

全部评论

相关推荐

02-26 09:15
已编辑
蚌埠学院 golang
点赞 评论 收藏
分享
牛客44320985...:你的当务之急是把这个糖的要死的沟槽ide主题改了
点赞 评论 收藏
分享
评论
1
收藏
分享

创作者周榜

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