分类: Mysql/postgreSQL
2010-08-07 10:47:48
+-------------+----------+-
| Host | User |
+-------------+----------+-
| % | devl |
| 192.168.1.1 | dev1 |
| 192.168.1.1 | |
| 192.168.% | dev1 |
+-------------+----------+-
那么按照上面所说的规则,user表被载入内存后排序,得到下面的样子:
+-------------+----------+-
| Host | User |
+-------------+----------+-
| 192.168.1.1 | devl |
| 192.168.1.1 | |
| 192.168.% | dev1 |
| % | dev1 |
+-------------+----------+-