为了理解这个概念,我们使用表“薪水”中的数据,如下 -
mysql> Select * from Salary; +--------+--------+ | Name | Salary | +--------+--------+ | Gaurav | 50000 | | Rahul | 40000 | | Ram | 45000 | | Raman | 45000 | +--------+--------+ 4 rows in set (0.00 sec) mysql> Select * from salary12345 order by salary DESC limit 1 offset 1; +-------+--------+ | name | Salary | +-------+--------+ | Raman | 45000 | +-------+--------+ 1 row in set (0.00 sec)
以上是我们如何从 MySQL 表中获取员工第二高的工资?的详细内容。更多信息请关注PHP中文网其他相关文章!