方法二
select * from (select count(n_code) as c from table1(表名) group by n_code,n_orgid) as tt where c>1;
sql 使用group by,having,count函数查询表中某字段相同内容的数据
标签:gid 函数 group by 内容 rom class style nbsp 方法
方法二
select * from (select count(n_code) as c from table1(表名) group by n_code,n_orgid) as tt where c>1;
sql 使用group by,having,count函数查询表中某字段相同内容的数据
标签:gid 函数 group by 内容 rom class style nbsp 方法