代码改变世界

随笔档案-2010年4月28日

转:Oracle怎么处理动态SQL.ref cursor与using 参数的结合使用.来自AskTom.

2010-04-28 10:28 by Tracy., 911 阅读, 收藏,
摘要: You Asked Hi Tom, I have a web application connecting to a Oracle DB. I have a search screen where user can enter any search criterion and submit the information. The information is collected and pass... 阅读全文

转:Oracle的Start with ...Connect by 用法

2010-04-28 08:53 by Tracy., 4084 阅读, 收藏,
摘要: 通过START WITH . . . CONNECT BY . . .子句来实现SQL的层次查询.自从Oracle 9i开始,可以通过 SYS_CONNECT_BY_PATH 函数实现将父节点到当前行内容以“path”或者层次元素列表的形式显示出来。自从Oracle 10g 中,还有其他更多关于层次查询的新特性 。例如,有的时候用户更关心的是每个层次分支中等级最低的内容。那... 阅读全文