I need to find by sequence which contains symbols []
like !@#$%^&[]{}<>?/,.*(^
with a like
expression in SQL Server 2014.
How I can escape brackets to find records which contain the target string?
Example
SELECT *
FROM [TARGET_TABLE]
WHERE [TARGET COLUMN] LIKE '%"!@#$^&[]{}<>?/,.*(^"%';
[TARGET TABLE]
has a row with [TARGET COLUMN]
which value is
some text "!@#$^&[]{}<>?/,.*(^"
but the result of the expression is empty.
I know []
is a wildcard, but how can I escape brackets to find strings with them?