STRCMP(string1,string2)

Description: Compares string1 with string2 and returns the following:

  • 0 if the strings are the same

  • 1 if string1 is greater than string2

  • -1 if string1 is less than string2

Examples:

  • STRCMP('x','x') returns 0.

  • STRCMP('x','Y') returns -1.

  • STRCMP(BINARY 'x','Y') returns 1.

See also: LEAST(), GREATEST()

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.16.48.181