[此贴子已经被作者于2007-4-9 12:33:02编辑过]
[此贴子已经被作者于2007-4-9 14:55:20编辑过]
条件呢?这样肯定没数据了。。。exists (select )如果select这个存在 条件成立not exists (select )如果select top 4不是空条件就不成立你少了a.主键=b.主键吧?
select top 5 * into #gh from operatordelete from #gh where operatorid = any (select top 2 operatorid from #gh)select * from #gh