jquery - How to get mysql search query to select all row contains url variables? -


i trying search query takes url variables , match against table1. issue if don't have exact name in search field not return search value.

example if search word "basket" not return value if search word "basketball" basketball 1 of table1.column2 value.

select * table1  join table2 on table1.colname = table2.colname  table1.colname2 %s 

have tried having clause instead of clause in select statement ? try it

 select * table1 join table2 on table1.colname = table2.colname having table1.colname2 '%s%' 

Comments

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -