In MySQL, you can use NOT LIKE
to perform a negation of the LIKE
operator. In other words, NOT LIKE
returns the opposite result to LIKE
.
If the string matches the pattern provided, the result is 0
, otherwise it’s 1
.
The pattern doesn’t necessarily need to be a literal string. This function can be used with string expressions and table columns.