DISTINCT 在所有列上转换为 GROUP BY,并与 ORDER BY 子句结合使用

SELECT DISTINCT t1.a FROM t1,t2 where t1.a=t2.a;

Java Program!