1: select distinct(a,b) from table1
2: up

解决方案 »

  1.   

    1,
    select a,b from table1 group by a,b
    2,
    select a,b from table1 group by a,b
    union
    select a,b from table2
      

  2.   

    select distinct(a,b) from table1我早试过了,不行的
      

  3.   

    1)
    select distinct a,b  from table1
    2)
    select a,b from table1 
    union
    select a,b from table2
      

  4.   

    select a, b from table1 group by a, bselect a, b from (
    select a, b from table1
    union all
    (select a, b from table2)
    ) A group by a, b