Want 1 the results of the query result is shown in figure 2 data
Wrote IN mysql SQL statements can be found out, because I never wrote, so I think it is wrong: SELECT * FROM ` main_page_polly ` WHERE catagory IN (2, 3)
Great god to trouble about reason, if so write wrong words should be how to write the SQL
CodePudding user response:
It only seems to see the 2, 3 at the beginning of record, if 2 or 3 in the middle, can't see, can use the like to see, but performance is not good, wait for the optimal solutionCodePudding user response:
The REGEXP the realization of the regular group match, two stringshttp://blog.csdn.net/acmain_chm/article/details/4141864