I want to retrieve value from a specific row of MySQL table,for example : If my table is having 5 rows I want to retrieve value of second row. What’s the query for doing that.
I want to retrieve value from a specific row of MySQL table,for example :
Share
You can use a
LIMITclause (MySQL docu) for that like in the following code, but be aware, that unless you apply an ordering of some sort (ORDER BY col), the actual row, that is outputted might vary as there is no intrinsic ordering in SQL-tables.A better solution would be to add an additional column
idto the table and then select by thatid. Or at least use theidcolumn for ordering as described before.