MySQL regexp_like() function is used for pattern matching. It compares the given strings and returns 1 if the strings are same else it returns 0.
select regexp_like(str1, str2);
select regexp_like('MCA', 'mca');
Output:
select regexp_like('MCA', 'bca');
Output: