查询多条数据中的任意一条? 比如表t有a、b两个字段。现在我想取“distinct a”和“任意一个b”的记录。请问该如何取? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select distinct a,(select b from t where a=t1.a and rownum<2) bfrom t t1; 新手的一个问题 oracle中时间显示问题 谁有oracle TNS协议 根据时间字段,统计 相邻记录,时间间隔大于半小时的记录数,在线等 数据库开发和DBA会用到哪些工具? 进SQL*PLUS时,提示错误:ORA-01033: ORACLE initialization or shutdown in progress 100分相送!在线等待! dual 是个什么表 菜鸟问题,大量的数据中怎么删除表中重复行? ireport怎么进行模糊查询? 表被DROP掉了,可以恢复吗? 求SQL
select distinct a,(select b from t where a=t1.a and rownum<2) b
from t t1;