求救distinct 本帖最后由 zhangshuang555 于 2011-10-18 15:55:34 编辑 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select qishu,id=min(id),title,t_time from test group by qishu,title,t_time你这个distinct可以去掉 你上个贴14楼回复估计你要select id,title,sex,adress,qishu from biao afrom not exists ( select 1 from biao where qishu = a.qishu and id < a.id ) 我现在想查询,把期数相同的给去掉,然后,查询所有!可我使用的这个distinct无效!!3楼的,这个语句报错,说from附近有语法错误! 求sql语句 C#中文分词后如何建立索引 (讨论)使用自定义函数是否会影响效率? 如何同步两台服务器数据库 ASP链接数据库 代码页? 请教个问题! UPDATE 語句。快幫幫忙 给点意见吧 一个很简单的问题 求教一个转换日期格式的语句,谢谢 ???请问SQL如何写if语句???
你这个distinct可以去掉
select id,title,sex,adress,qishu from biao a
from not exists (
select 1 from biao
where qishu = a.qishu
and id < a.id
)