sql LIKE operator for sampling
-
There are "massiv" values: "Izumrud," "Fianit," "Granat," "Rauchtopaz." In the OBD field vstavki, the values are presented lines:
id vstavki
1 grenades, tops, ametist, Rahutopaz, chrysolite
2 london-toaz, Phianiti
3 ametist, citrin, grenades, tops, filanit
4 ametres, Phianiti
5 tops, Pianiti
etc.
How do you write an expression for LIKE to remove all the lines in which there is at least one word in the body?
-
Eat through.
OR
:WHERE (vstavki LIKE "%изумруд%" OR vstavki LIKE "%фианит%" OR vstavki LIKE "%гранат%" OR vstavki LIKE "%раухтопаз%") AND...;
You can get a line like like that in any CP.
And the regular in the muscle is this. http://dev.mysql.com/doc/refman/5.7/en/regexp.html ♪