oracle distinct 是全部字段都相同才顯示一條,要作到根據某一列,則以下oracle
select t1.* from table t1 where t1.rowid = (select min(t2.rowid) from table t2 where t1.c= t2.c)table