mysql - Fetch Record according to occurence in like query -


i using simple my-sql query... column records "strong, true, trap, strip" on.

"select * table name '%tr%'". 

like this. want fetch records according occuring position. trap, true, strip, strong. possible manipulate query according occurence in like.

do mean order results based on location of search string? like:

select * table name '%tr%' order locate('tr', name) asc 

Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -