select distinct aa from table1 where id=1
sql语句,使得选出来的aa字段值是1和2的查询结果都为1.