面试题大家来看看? delete from [t] where [no] not in (select [no] from [t] group by [content])注:假定no为unique的 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 delete Tfrom T awhere T.content = a.content and T.no < a.no delete from [t] where [no] not in (select [no] from [t] group by [content])错误:列 't.no' 在选择列表中无效,因为该列既不包含在聚合函数中,也不包含在 GROUP BY 子句中。 delete Tfrom T awhere T.content = a.content and T.no < a.no错误:本身就错了. david4() ?no is unique,那么select [no] from [t] group by [content]这个可能吗?你试试看. delete #Tfrom #T,#T awhere #T.content = a.content and #T.no < a.no 一道褒贬不一的 SQL 考试题http://dev.csdn.net/develop/article/15/15989.shtm 我不知delete 后面的#T是什么意思? delete from t a where exist( select * from t where t.content=a.content and id<a.id) delete from [t] where [no] not in (select min([no]) from [t] group by [content])没测试过!其实思路就是,通过group [content],得到content不同的[no],然后把其他的都删了就OK 为什么我的MYSQL只能安装在C盘,不能安装到其他盘,安装到其他盘启动服务的时候会说进程意外终止。有类试经历的说说啊! delete t where no in (select distinct a.no from t a, t b where a.content=b.contentand a.no<b.no) 其实这种也可以的:delete from t where no > any(select no from t a where t.content = a.content); 跪求一条正确的可以执行的SQl语句。。 求助:sql server2000 显示<long text> 实例。谢谢 用备份还原的方式在同一台服务器上建一个当前数据库的备份出现置疑 注册表在哪里 为什么计算结果会大于应有结果? 请教:这个触发器如何写 关于任务和触发器的问题 将SQL中的数据导入,导出(java)?? Access中如何实现自动累加的? 请教高于,关于“存储过程”的问题! 邹大侠,还是不行呀? 关于嵌套循环问题
from T a
where T.content = a.content and T.no < a.no
from T a
where T.content = a.content and T.no < a.no
错误:本身就错了.
no is unique,
那么select [no] from [t] group by [content]这个可能吗?
你试试看.
from #T,#T a
where #T.content = a.content and #T.no < a.no
http://dev.csdn.net/develop/article/15/15989.shtm
其实思路就是,通过group [content],得到content不同的[no],然后把其他的都删了就OK
不能安装到其他盘,
安装到其他盘启动服务的时候会说进程意外终止。
有类试经历的说说啊!
and a.no<b.no)
delete from t where no > any(select no from t a where t.content = a.content);