mysql> select * from test_collection where name like '%t1_%';
+----+---------+------+---------+
| id | name | note | status |
+----+---------+------+---------+
| 51 | t1_dd | t1 | enabled |
| 52 | t1dfddf | t2 | enabled |
+----+---------+------+---------+
2 rows in set (0.00 sec)
mysql>
mysql> select * from test_collection where name like '%t1\_%';
+----+-------+------+---------+
| id | name | note | status |
+----+-------+------+---------+
| 51 | t1_dd | t1 | enabled |
+----+-------+------+---------+
1 row in set (0.00 sec)
参考: