2017-08-31 77 views

回答

0

试试这个

select * from table_name where stepID = (select min(stepID) from table_name where stepID > 1) 
+0

谢谢,但我已经修好了。我会在稍后将此标记为答案。 –

0

您可以使用此得到下一条记录:

- SELECT * FROM tbl WHERE stepID > 2 ORDER BY id LIMIT 1 

希望这将帮助你!

相关问题