Skip to content

Compares two strings lexicographically. Returns 0 if equal, -1 if str1 < str2, 1 if str1 > str2.

func.strcmp(<str1>, <str2>)
func.strcmp('abc', 'abd')
┌────┐
-1
└────┘
STRCMP(<str1>, <str2>)
SELECT STRCMP('abc', 'abd');
┌────┐
-1
└────┘