摘要: 方法一 declare @max integer,@id integerdeclare cur_rows cursor local for select 主字段,count(*) from 表名 group by 主字段 having count(*) > 1open cur_rowsfetch cur_rows into @id,@maxwhile @@fetch_status=0begi... 阅读全文
posted @ 2006-11-01 09:08 网鱼 阅读(622) 评论(0) 推荐(0) 编辑