标签:code 字符串相同 style logs class mysq select -- sel
STRCMP(s1,s2) 用于比较字符串 s1 和 s2 的大小,若所有字符串相同则返回 0 ,若第一个字符串大于第二个字符串则返回 1 ,若第一个字符串小于第二个字符串则返回 -1
mysql> SELECT STRCMP(‘txt‘, ‘txt2‘), STRCMP(‘txt‘, ‘txt‘); +-----------------------+----------------------+ | STRCMP(‘txt‘, ‘txt2‘) | STRCMP(‘txt‘, ‘txt‘) | +-----------------------+----------------------+ | -1 | 0 | +-----------------------+----------------------+
标签:code 字符串相同 style logs class mysq select -- sel
原文地址:http://www.cnblogs.com/pzk7788/p/6895739.html