现在的位置: 首页 > 数据库 > 正文

Oracle如何查询字符串中是否含有%

2018年08月11日 数据库 ⁄ 共 116字 ⁄ 字号 评论关闭

1.使用变通方式

select 'yes' from dual where instr('ds%fk','%')>0;

 

2.使用like 转义

select 'yes' from dual where 'abcd%edf' like '/%' escape '/';

抱歉!评论已关闭.