Powered by Zoomin Software. For more details please contactZoomin

DataDirect OpenAccess SDK Help

Like Predicate Escape Characters

  • Last Updated: May 12, 2026
  • 1 minute read
    • OpenAccess SDK
    • Version 8.1
    • Documentation

In a LIKE predicate, the percent sign (%) matches zero or more of any character and the underscore (_) matches any one character. To match an actual percent sign or underscore in a LIKE predicate, an escape character must precede the % or _. The escape sequence that defines the LIKE predicate escape character is:

{escape 'escape-character'}

where escape-character is any character supported by the data source.

Example

SELECT Name FROM Customers
WHERE Name LIKE '\%AAA%' {escape '\'}

Returns all the customers for which the name starts with “%AAA”.

TitleResults for “How to create a CRG?”Also Available inAlert