Table of Contents

Search

  1. About the Data Vault SQL Reference
  2. Introduction to SQL Reference for Informatica Data Vault
  3. Date and Time Arithmetic
  4. WHERE Clauses
  5. UNION Operator
  6. Parameterized Query
  7. Functions

Data Vault SQL Reference

Data Vault SQL Reference

ESCAPE character

ESCAPE character

If either the percent (%) character or underscore ( _ ) character is to be interpreted literally within the
pattern-string
argument of a LIKE predicate, an escape character must precede the percent character or underscore character within the string constant.
In order to define an escape character, the ESCAPE keyword and its character argument must follow the
pattern-string
argument within the LIKE predicate. The character specified for the character argument must precede occurrences of the percent character or underscore character within the
pattern-string
argument. Consider the following example:
desc LIKE '%40!%%' ESCAPE '!'
This LIKE predicate is satisfied by rows containing the string
40%
in the
desc
column.

0 COMMENTS

We’d like to hear from you!