mysql> select DISTINCT title, id from myadmins;
+------+------------+
| id | title |
+------+------------+
| 1 | admin |
| 2 | stack |
| 3 | jeff |
| 4 | admin |
| 5 | stack |
+------+------------+
1 row in set (0.00 sec)
编辑
我想要的不是重复标题栏
+------+------------+
| id | title |
+------+------------+
| 2 | stack |
| 3 | jeff |
| 4 | admin |
+------+------------+
1 row in set (0.00 sec)