发布网友 发布时间:2022-05-29 06:33
共4个回答
热心网友 时间:2023-10-09 15:23
SELECT *热心网友 时间:2023-10-09 15:24
select count(字段名) from 表 where 字段=“字段名”热心网友 时间:2023-10-09 15:24
SELECT
热心网友 时间:2023-10-09 15:25
select * from Tab as a where exists(select 1 from Tab where ID=a.ID and Age<>a.Age)追问select * from Tab as a where exists(select 1 from Tab where ID=a.ID and Agea.Age)追答select * from Tab as a where (select count(distinct Age) from Tab where ID=a.ID ) =3
--可以這樣寫,查出記錄3 這里自己加條件 如:>1