【发布时间】:2017-01-26 08:46:49
【问题描述】:
我的表中有一个名为to_user 的列,其内容如下:
id to_user
1. 1+2+3
2. 1
我的查询
select
* from notifications
where (type = 4 and to_user LIKE %+".$user_id."+%)
or (to_user REGEXP +?".$user_id."+? ) and status = 2
但它不起作用。
【问题讨论】:
-
没有多大意义。什么是
+?