select *
from
表
where
字段 in(
select 字段
from
表
group by 字段
having count(*) > 1)
order by 字段
在筛选条件的基础上查询字段重复的数据:
select * from 表名
where
字段 in (
select 字段 from 表名
where isDelete = 'Y' //筛选条件需要写在括号里
group by 字段
having count(*) > 1)
order by 字段
select *
from
表
where
字段 in(
select 字段
from
表
group by 字段
having count(*) > 1)
order by 字段
在筛选条件的基础上查询字段重复的数据:
select * from 表名
where
字段 in (
select 字段 from 表名
where isDelete = 'Y' //筛选条件需要写在括号里
group by 字段
having count(*) > 1)
order by 字段