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

java - How to set log4j.defaultInitOverride property to false in jboss server 6 -

c - GStreamer 1.0 1.4.5 RTSP Example Server sends 503 Service unavailable -

Using ajax with sonata admin list view pagination -