select a.id,a.cntid,a.subject,a.previewfile,a.producetime,b.name
from a,b
where a.status=1
and a.cntid=b.id
and a.producetime in (select distinct producetime from a
where rownum<6
order by producetime desc)
from a,b
where a.status=1
and a.cntid=b.id
and a.producetime in (select distinct producetime from a
where rownum<6
order by producetime desc)
解决方案 »
- SELECT 求助··
- 请教个oracle存储过程的问题,人一直在,急呀急
- 基础知识的问题
- 使用游标时报这样的错,“游标cur不能在动态sql open语句中使用”?
- 这条SQL还有改造吗
- row_number()over排序问题
- 先按出生日期降序,然后显示第6-10行之间的学生信息
- 新手提问:select * into NewTable from OldTable在ORACLE中出错,能实现这功能吗
- 如何赋予我操作lock table ... in exclusive mode的权限
- 急!急!ORACLE 跑PAC成本 期间平均成本时报错,怎么处理?
- ORACLE中的SQL语句呀
- 问个基础问题:
from a,b
where a.status=1
and a.cntid=b.id
and a.producetime and rownum<6 order by A.producetime desc我这样与楼上写的怎么不一样啊....