解决方案 »
- Oracle数据库的schedule job怎么生成创建脚本
- oracle有类似MS SQL一样的跟踪工具吗?
- 如何在linux下手工添加oracle数据库呢?希望大虾们不要不屑于回答,wait online....
- 如何把sqlserver 中的表导到ORACLE 中去呢。有没有什么工具啊。导出的脚本ORACLE 里语法不一样,不能执行的啊
- select count(*) into a
- 关于substr函数
- Oracle8i安装完后,如何进行数据库的配置
- 菜鸟雪地跪求:ORACLE9i在AIX5.2上安装出错
- Oracle 释放内存问题,超急!!!
- 数据库连接问题,求救在线等待,谢谢
- 讨论下group的排序机制是什么
- Oracle occi createConnection连接失败
select id,name,time from 表A union all
select id,name,time from 表B union all
select id,name,time from 表C union all
select id,name,time from 表D ) group by trunc(time);
--如果表很多,可以写一个存储过程动态拼接如上形式的SQL返回数据集
from (select time,name from a
union all
select time,name from b
union all
select time,name from c
union all
select time,name from d)
group by time
select id,name,time from 表B union all
select id,name,time from 表C union all
select id,name,time from 表D)
select trunc(time),count(*) from temp group by trunc(time)