How to write the like% query with too many values in sql ?
For example ,please see the table structure
Id Tid name
1 1 test
2 3 ram
3 10 felix
select * from table where Tid Like % 1,10 %
Also i am putting this value in a form , so post variable value like $_POST['tid']=1,10 so i am going to will implement this like
select * from table where Tid Like % $_POST['tid'] %
Thank you .
select * from table where Tid IN (1,10)?