创建一个新的表,去除旧表里某些字段重复的数据,仅保留一个。
create table tbl_csrc_fund_new (select * from tbl_csrc_fund_dis where id in (select Max(id) from tbl_csrc_fund_dis group by file_id,data_type))
创建一个新的表,去除旧表里某些字段重复的数据,仅保留一个。
create table tbl_csrc_fund_new (select * from tbl_csrc_fund_dis where id in (select Max(id) from tbl_csrc_fund_dis group by file_id,data_type))