Skip to content

STRCMP

  • string1: The first string to compare.
  • string2: The second string to compare.
SELECT STRCMP("Hello", "World");
-1

In this example, the STRCMP() function compares two strings “Hello” and “World”. The result is -1 because “Hello” is less than “World” based on the ASCII value.