单个字段:
select distinct(a) from tableA;
多个字段,利用max()去重
SELECT
*
FROM
GM_PPU_RESIDENT_NORBASE g
WHERE
g.ROWID = ( SELECT max( s.ROWID ) FROM GM_PPU_RESIDENT_NORBASE s WHERE g.CARD_NO = s.CARD_NO )
单个字段:
select distinct(a) from tableA;
多个字段,利用max()去重
SELECT
*
FROM
GM_PPU_RESIDENT_NORBASE g
WHERE
g.ROWID = ( SELECT max( s.ROWID ) FROM GM_PPU_RESIDENT_NORBASE s WHERE g.CARD_NO = s.CARD_NO )