【发布时间】:2025-12-01 13:55:02
【问题描述】:
我正在使用 MySQL/MySQL Workbench,如果我想通过 studentName 选择第 5 个返回的行顺序,解决方案是什么?谢谢。
select * from Students order by studentName;
提前致谢, 林
【问题讨论】:
-
智能解决方案,谢谢安迪!
-
听起来像家庭作业
我正在使用 MySQL/MySQL Workbench,如果我想通过 studentName 选择第 5 个返回的行顺序,解决方案是什么?谢谢。
select * from Students order by studentName;
提前致谢, 林
【问题讨论】:
您可以在下面使用LIMIT:
SELECT *
FROM Table1
ORDER BY Id
LIMIT 4,1 -- here you provide which row you want to retrieve
-- 4 indicates from which row start selecting (offset)
-- 1 - how many rows you want to retrieve
-- you can change It as you like
【讨论】: