48
48
Other REGEXP examples: :;
52
53
The search pattern may describe only a part of string. To match entire string, use ^ and $ in the search: ::
54
55
SELECT 'abc' REGEXP '^abc$', 'abcabc' REGEXP '^abc$';
65
67
The purpose of STRCMP is also to compare two strings. This function returns 0 if two strings are the same, -1 if the first argument is smaller than the second according to the current sort order, and 1 otherwise.