sql_contains
sql_contains
returns whether or not the SQL query contains a particular string.
SQL_CONTAINS(<substring>)
<substring>
- The string to search for within the SQL query text.
TRUE
- If the SQL query contains the given substring.
FALSE
- If the SQL query doesn’t contain the substring.
- SQL_CONTAINS performs case-sensitive matching.
SQL_CONTAINS('-- My Special Comment')
SQL_CONTAINS('ORDER BY mycol DESC')