MySQLSTRCMP() Function
Definition and Usage
The STRCMP() function compares two strings.
Syntax
STRCMP(string1,string2)
Parameter Values
| Parameter | Description |
|---|---|
| string1, string2 | Required. The two strings to be compared |
Return Values
- Ifstring1 =string2, this function returns 0
- Ifstring1 <string2, this function returns -1
- Ifstring1 >string2, this function returns 1
Technical Details
| Works in: | From MySQL 4.0 |
|---|

