-- 对于重复数据查询(保留)时间最新的一条
--方式一
select t.card_id,t.upload_time from table t where
t.upload_time = (select max(t1.upload_time) from table t1 where t1.card_id = t.card_id );
--方式二
select * from table a, (select max(c5) maxtime,c1 from table group by c1 ) b
where a.c5=b.maxtime and a.c1=a.c1
--exp/imp 导出、导入的应用。
导出:exp user/user@ip/user owner=userfile=D:/user.dmp
导入:imp user/user@ip/user FILE=D:/user.dmp fromuser=user touser=user2