易截截图软件、单文件、免安装、纯绿色、仅160KB

在Oracle中的树形操作

在Oracle中的树形操作
1.取子节点及路径(正树):
select t.id ,t.code, t.name ,t.pid
,SYS_CONNECT_BY_PATH(t.id,'.')||'.' as IdPath
from tas_catalog t
--where id!=110
start with id=110
connect by  pid = prior id
order siblings  by id
2.取各级父节点(倒树):
select t.id ,t.code, t.name ,t.pid
,SYS_CONNECT_BY_PATH(t.id,'.')||'.' as IdPath --路径从反的
from tas_catalog t
--where id!=110
start with id=110
connect by  id = prior pid
order siblings  by id
无论正树还是倒树, 关键就在于connect by的条件.
正树:   必须是   ‘父’= prior ‘子’
倒树:   必须是   ‘子’= prior ‘父’


相关文档:

北大青鸟oracle学习笔记10

索引
唯一索引:
列中无重复值,唯一约束。
oracle自动为主键和为一键列创建唯一索引
语法:create unique index 索引名 on 表名(列名);
组合索引:
在表中多个字段上创建的索引
列按任意顺序排列
where子句中包含多个列的查询,可提高访问速度。
语法:create index 索引名 on 表名(列名1,列名2,...,列名n):
反 ......

Oracle RAC 常用维护工具和命令


Oracle 的管理可以通过OEM或者命令行接口。 Oracle Clusterware的命令集可以分为以下4种:
节点层:osnodes
网络层:oifcfg
集群层:crsctl, ocrcheck,ocrdump,ocrconfig
应用层:srvctl,onsctl,crs_stat
下面分别来介绍这些命令。 
一. 节点层
只有一个命令: osnodes, 这 ......

Oracle and IBM AIX 5.2 swapping and memory issues

Lately,
Jordan bank upgraded their ICBS banking software to Oracle 9i and
IDS9i. The Bank also moved from a decentralized to a centralized
system.
We were contracted to monitor and diagnose performance issues during the launching phase of the new system.
The IBM server was equipped with 32 GB o ......

oracle clusterware 和 oracle rac 的主要部件

现在看相关的RAC结构的文章还不太理解。
现在看这个就很清楚其中的意思了。
oracle clusterware 主要有以下主要部件:
CSS: 集群同步服务
主要管理整个集群内各个节点间的情况,包括节点的添加和减少。与之对应的是ocssd 进程,如果改进程出现故障将会导致节点重启。如果使用了第三方的clusterware,css 通过第三方clus ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号