大家看看,进来拿点分!!!
select top 16 * from @t as a
where not exists(select 1 from @t where 企业编号=a.企业编号 and 时间> a.时间)
order by 企业编号 desc
这里的1代表是什么意思!
[解决办法]
1是常数, exists会返回true 或 false
发布时间: 2012-03-14 12:01:12 作者: rapoo
大家看看,进来拿点分!!!
select top 16 * from @t as a
where not exists(select 1 from @t where 企业编号=a.企业编号 and 时间> a.时间)
order by 企业编号 desc
这里的1代表是什么意思!
[解决办法]
1是常数, exists会返回true 或 false