跳脱字符

Oracle Escape Characters:oracle 跳脱字符

旧时模样 提交于 2019-12-25 20:51:32
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 一、Oracle 对于查询中间的的一些特殊字符,如果让它按照字面上去解释而不是当作特殊字符呢 Oracle allows the assignment of special escape characters to tell Oracle that the character is interpreted literally. Certain characters such as the underscore ?_? are not interpreted literally because they have special meaning within Oracle. In the example below, we want to find all Oracle parameter that relate to I/O, so we are tempted to use the filter LIKE ?%_io_%?. Below we will select from the x$ksppi fixed table, filtering with the LIKE clause: select ksppinm from x$ksppi where ksppinm like '%_io_%';