首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 软件管理 > 软件架构设计 >

查寻表里面重复的数据

2012-11-03 
查找表里面重复的数据第一种办法:????????????????? 运用存储过程,不过那样比较麻烦。第二种方法:?????????

查找表里面重复的数据

第一种办法:

?

???????????????? 运用存储过程,不过那样比较麻烦。

第二种方法:

??????????????? 用sql语句:

?

???????????????????? select t.account_number,t.insurance_date
???????????????????????????????????????????????????????????????????????????? from i_net_value t
???????????????????????????????????????? where t.rowid !=

?????????????????????? (select max(t.rowid)
??????????????????? ????????????? ?from i_net_value b
??????????????????????????????????? ?where b.account_number = t.account_number and
?????????????????????????????????????????????????? ?b.insurance_date = t.insurance_date)

?

?

热点排行