5. MySQL(5.1.41-3ubuntu12.10-log)似乎在使用和开发(大于)和(以下)进行细化比较方面取得了可预见的成果:
select "a" > "a", "a" > "b", "b" > "a", "ab" > "aa", "ab" > "aabbbb";
+-----------+-----------+-----------+-------------+-----------------+
| "a" > "a" | "a" > "b" | "b" > "a" | "ab" > "aa" | "ab" > "aabbbb" |
+-----------+-----------+-----------+-------------+-----------------+
| 0 | 0 | 1 | 1 | 1 |
+-----------+-----------+-----------+-------------+-----------------+
并且似乎还利用了关键因素:
explain select productcode from products where productcode < no ;
+----+-------------+----------+-------+-----------------+------+---------+------+------+--------------------------+
| id | select_type | table | type | possible_keys | key | key_len | ref | rows | Extra |
+----+-------------+----------+-------+-----------------+------+---------+------+------+--------------------------+
| 1 | SIMPLE | products | range | productcode,ppp | ppp | 34 | NULL | 432 | Using where; Using index |
+----+-------------+----------+-------+-----------------+------+---------+------+------+--------------------------+
这似乎没有记录——它是否是一个可靠的跨平台特征?