mysql> select strcmp('text','text'); +-----------------------+ | strcmp('text','text') | +-----------------------+ | 0 | +-----------------------+ mysql> SELECT strcmp('text', 'text2'),strcmp('text2', 'text'); +-------------------------+-------------------------+ | strcmp('text', 'text2') | strcmp('text2', 'text') | +-------------------------+-------------------------+ | -1 | 1 | +-------------------------+-------------------------+
Linux公社的RSS地址:https://www.linuxidc.com/rssFeed.aspx