怎么用select选出某列中含有%这个字符的数据? like 好像不行,有什么别的方法么? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 模糊查询可以的select col from dual where col like '%%%' 我用PL/SQL试过了,不行。貌似%都被认为是模糊字符了。 这个就把全部都取出来了·~这样应该行instr(t.depart_name,'%') > 0 SQL> select 1 from dual where '%1123' like '/%%' escape '/'; 1---------- 1 SQL> select 1 from dual where '1123' like '/%%' escape '/'; 1---------- SQL> 方法一:select col from dual where col like '%\%%' escape '\';方法二:select col from dual where col like '%'||chr(37)||'%'; orcale中 Packages中的存储过程的 具体实现代码放在哪里了 ORACLE能自动均衡负载吗? ms sql server ,infomix ,DB2 谁行? 请教:关于Oracle Web Cache 有谁对ORACLE的用户表和日志文件的结构比较清楚一些? delphi+oracle远程存取 调用存储过程权限不足(存储过程中使用了dbms_sql),迷惑很久的问题 快照数据问题,在线等待!!! 在linux安装oracle的问题 表被删除问题; plsql登录出错 关于Oracle数据库 特殊字符处理的问题 关于如何冷备份恢复数据库
select col from dual where col like '%%%'
貌似%都被认为是模糊字符了。
这个就把全部都取出来了·~这样应该行
instr(t.depart_name,'%') > 0
1
----------
1
SQL> select 1 from dual where '1123' like '/%%' escape '/';
1
----------
SQL>
方法一:select col from dual where col like '%\%%' escape '\';
方法二:select col from dual where col like '%'||chr(37)||'%';