i am executing a sql query which doesn't gives me required output:
Table:
-----------------------
| col1 |
----------------------
| data for hello user |
| data |
-----------------------
sql query Select * from table where col1 like'%data%' or col1 like '%for%' or col1 like '%hello%' ;
it shows me out put:
-----------------------
| col1 |
----------------------
| data |
| data for hello user |
-----------------------
but as data for hello user
has maximun match with sql like operation so data for hello user
comes first and data
second
Please help me
Thank you.