您的位置:首页 > 数据库

sql语句:如何筛选重复数据

2010-01-20 16:59 393 查看
select
t.schoolid,t.id,t.photoname
from
T_SchoolPhoto t
where
not exists(select 1 from T_SchoolPhoto where id>t.id and schoolid=t.schoolid)
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: