56,678
社区成员
发帖
与我相关
我的任务
分享
mysql> select 'adf?adf' regexp '\\?';
+------------------------+
| 'adf?adf' regexp '\\?' |
+------------------------+
| 1 |
+------------------------+
1 row in set (0.00 sec)
select * from t where name REGEXP '[^\\?]*\\?\\.*';
select * from table where locate( '? ', 'str ')> 0;
或
select * from table where instr( 'str ', '? ')> 0;
select * from table where locate('?','str')>0;
或
select * from table where instr('str','?')>0;