MYSQL - Select specific value from a fetched array

后端 未结 9 1448
青春惊慌失措
青春惊慌失措 2021-01-06 01:45

I have a small problem and since I am very new to all this stuff, I was not successful on googling it, because I dont know the exact definitions for what I am looking for.

9条回答
  •  一向
    一向 (楼主)
    2021-01-06 02:42

    If you always want the second row, no matter how many rows you have in the database you should modify your query thus:

    SELECT * FROM theTable LIMIT 1, 1;
    

    See: http://dev.mysql.com/doc/refman/5.5/en/select.html

提交回复
热议问题