select DISTINCT id from user Order By case ; 该语句SQL语名,如果加上了DISTINCT就报错, 注意: DISTINCT与ORDER BY一般不要一起使用,用Group By调节;