求个快法~~~ 字段吧 14个数据吧 10来万条某字段吧 名叫URL目的吧 取不重复的URL信息这URL吧 加了索引SQL吧 这样滴 select * from table group by URL完了吧 老半天没反映有快法不~ 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select a.* from table ainner join(select url from table group by URL having count(*)=1) bon a.url=b.url select distinct URL from table 若表中还存在一个唯一的字段ID,还可以这样select * from [table] twhere not exists(select * from [table] where URL=t.URL and id<t.id) select distinct URL from table 试试这个。 如何查询前1000条数据 1亿条记录update表关联如何优化? mysql 嵌套 cursor 出錯 请教各位大侠,这个查询出的字段中‘0’ 代表着什么意思啊? Navicat 8 for mysql 创建存储过程 关于blob, 一个灰常菜的菜鸟问题, 快来抢分 为什么我的控制中心不能连接上 MySQL 呀? 关于C#操纵MySQL语句中有中文的问题 为什么使用mysql索引之后速度下降了80%? mysql加了索引,查询还是特别慢 MySQL 删除在插入数据问题 能不能查到是那个用户建的表
inner join
(select url from table group by URL having count(*)=1) b
on a.url=b.url
select * from [table] t
where not exists(select * from [table] where URL=t.URL and id<t.id)
试试这个。