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) oracle对大表中数据更做新 oracle decode函数的怪事。 求oracle.com.cn邀请码一个,谢谢 高手看看imp导入数据库为什么会出错? 如何在查询语句中增加序号? sqlldr 如何导入数组类型的数据? butween 的奇怪问题 变量生明不对? 救命啊~!Oracle高手来看看!实在是太难解决了!!!(在线等待) 求一sql 语句 !!! 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)