Oracle中like查询下划线等特殊字符的处理
2016-04-28 14:17
459 查看
ESCAPE Clause Example
You can include the actual characters "%" or "_" in the pattern by using theESCAPEclause, which identifies the escape character. If the escape character appears in the pattern before the character "%" or "_" then Oracle interprets this character literally in the pattern, rather than as a special pattern matching character.To search for employees with the pattern 'A_B' in their name:SELECT last_name FROM employees WHERE last_name LIKE '%A\_B%' ESCAPE '\';The
ESCAPEclause identifies the backslash (\) as the escape character. In the pattern, the escape character precedes the underscore (_). This causes Oracle to interpret the underscore literally, rather than as a special pattern matchingcharacter.
相关文章推荐
- 基于Spark SQL 读写Oracle 的简单案例分析常见问题
- Oracle闪回查询恢复delete删除数据
- linux手动或者自动启动oracle11g的服务 Oracle 自动启动脚本
- linux redhat6.4安装oracle11g
- oracle创建表空间
- 利用DB Link实现Oracle两个数据库间的表同步
- CentOS7中oracle11g备份脚本
- Oracle查看连接数、表空间大小及使用率
- Oracle 配置transparent gateway(透明网关)连接sqlserver数据库(gateway安装在sqlserver服务器)
- CentOS6.5x64采用静默模式安装64位oracle11g
- Oracle使用Mybatis实现List批量插入数据
- Python访问Oracle
- oracle导入dmp文件命令、sql文件命令, Oracle用户的新增、修改、删除及授权
- java web项目与oracle rac连接JNDI
- oracle使用exp导出时不导出空表解决方法
- oracle.jbo.JboException: JBO-29000: JBO-29000: Bad version number in .class file
- ORACLE 11G R2 DGBROKER 之总结
- oracle+mybatis 使用动态Sql当插入字段不确定的情况下实现批量insert
- oracle字符集设置
- Oracle sql日期比较和常用日期函数整理(全)