php - MySQL order by where greater than a phrase alphabetically? -



php - MySQL order by where greater than a phrase alphabetically? -

how can mysql select statement order name it's alphabetically greater grapes? * result should orange.

apple grapes orange pear pineapple

i can't order name. have order name starting after grapes.

you can using limit 1 , clause :

select name youtable name > 'grapes' order name limit 1

php mysql

Comments

Popular posts from this blog

Using Android Volley to post an array to PHP -

python - How to add an model instance to a django queryset? -

angularjs - No 'Access-Control-Allow-Origin' error from local domain to public API -