ENDSWITH is a string manipulation function that manipulates all string data types (BIT, BLOB, and CHARACTER), and returns a Boolean value to indicate whether one string ends with another.
ENDSWITH returns TRUE if SourceExpression ends with SearchExpression, otherwise it returns FALSE.
The parameter strings for both SearchExpression and SourceExpression can be of the CHARACTER, BLOB, or BIT data type, but must be of the same data type.
If any parameter is NULL, the result is NULL.
ENDSWITH('Hello World!', 'World!');
returns
TRUE. ENDSWITH('Hello World!', 'World');
returns
FALSE.