ITPub博客

首页 > 数据库 > Oracle > Escape clause to avoid wildcard characters.

Escape clause to avoid wildcard characters.

原创 Oracle 作者:ywolf 时间:2011-05-20 16:16:34 0 删除 编辑

If the escape character precedes the character % or _ in the pattern, then Oracle interprets this
character literally in the pattern rather than as a special pattern-matching character

e.g.

SELECT * FROM dba_tables
WHERE table_name LIKE '%GL_%' ESCAPE ''

[@more@]

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/26719/viewspace-1050140/ ,如需转载,请注明出处,否则将追究法律责任。

下一篇: Julian day
请登录后发表评论 登录
全部评论
  • 博文量
    5
  • 访问量
    108755