You are viewing content for 5.1 | 5.0 | 4.9 | 4.8 | 4.7 | 4.6 | 4.5 | 4.4 | 4.3 | Previous Releases


like

Returns true if a string pattern can be found in a given string.

Example

Get number of times the country name contained in U shows up in a given table.

count(like(Sales_Acme.Countries.COUNTRY_NAME, 'U%'))

Syntax

like(string expr field, string pattern, [string esc])
  • field : string expression to search
  • pattern : string to search for
  • esc : string

    Returns

    boolean

Notes

Function like takes field and searches for an instance of pattern. It returns true if it finds pattern in field and stops searching. If pattern is not found in field, like returns false.


© Incorta, Inc. All Rights Reserved.