sql - Get the last result from the mysql resultset in mysql stored procedure -


i have table data follows.

name      age alex      23 tom       24 

now how last row ie. row containing "tom" in mysql stored procedure using select statement , without considering name , age. thanks.

without considering name , age

that's not possible. there's no "first" or "last" row in result set long don't add order a_column query. result see kind of random. might see same result on , on again, when execute query 1000 times, might change when index gets rewritten or more rows added table , therefore execution plan query changes. it's random!


Comments

Popular posts from this blog

c# - SelectList with Dictionary, add values to the Dictionary after it's assigned to SelectList -

how can i manage url using .htaccess in php? -

ios - I get the error Property '...' not found on object of type '...' -