SQL查询,组合列不重复 如何查询使组合列不重复,如(姓名+年龄)组合起来不重复,而单列上(如:姓名)可重复 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 表结构是什么样的?你要达到什么功能?group by ? select distinct 姓名,年龄 from table1 select tb.* from tb,(select name,age from tb group by name,age) ttwhere tb.name=tt.name and tb.age=tt.age select a.* from tablename a whereexists (select * from tablename b where a.name||a.age!=b.name||b.age) oracle10g 双机热备份一张表怎么做? pl/sql函数是不是只能返回一个值? 插入数据的问题 50分--怎样用oracle提供的oci函数编写c/c++程序连接数据库? 奇怪的问题dblink报0RA-12154:TNS :无法处理服务名错误,但TNSNAMES.ORA文件没有配置错,用相同的用户名,密码登陆数据库都没有问题 WINDOWS下新装oracle,为什么我进不去呀 为什么我的oracle8装不上 为什么Oracle的客户端不能连接服务器端阿 如何从千万记录数据中快速查询到结果-尽量短的时间内完成 如何迁移数据库 java生成触发器问题 帮忙分析一下这个SQL 谢谢
group by ?
(select name,age from tb group by name,age) tt
where tb.name=tt.name and tb.age=tt.age
select a.* from tablename a where
exists (select * from tablename b where a.name||a.age!=b.name||b.age)