MySQL STRCMP() FunctionThe strcmp() is a String function of MySQL. This function compares the given two strings. This function returns 0 if both the strings are same, -1 if the first string is smaller than second else it returns 1. SyntaxParameters:Str1 and str2: two strings to be compared Returns:
Example 1Output: Example 2Output: Example 3Output:
Next TopicMySQL String
|