oracle
iteye_15588
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
oracle的使用技巧
1.记录去重 delete from tlbb.tlbb_bind_log where rowid not in (select max(rowid) from tlbb.tlbb_bind_log where BUY_TIME >= to_date('2012-07-10', 'yyyy-mm-dd') and BUY_TIME ...2012-07-28 11:52:37 · 121 阅读 · 0 评论 -
spring+jotm+jta+xapool+hibernate+oracle架构中多数据源出现的问题
公司一系统使用了spring+jotm+jta+xapool+hibernate+oracle架构,系统出现了500错误,错误信息如下: java.sql.SQLException: SQLException in StandardPoolDataSource:getConnectionexception: java.sql.SQLException: Cannot get c...2012-08-01 16:31:14 · 293 阅读 · 0 评论 -
Oracle中 Connect By用法(一)
oracle中的select语句可以用START WITH...CONNECT BY PRIOR子句实现递归查询,connect by 是结构化查询中用到的,其基本语法是:select ... from <TableName> where <Conditional-1>start with <Conditional-2>connect by <C...2012-08-21 21:09:35 · 177 阅读 · 0 评论 -
Oracle “CONNECT BY” 使用(二)
Oracle “CONNECT BY”是层次查询子句,一般用于树状或者层次结果集的查询。其语法是:?12[ START WITH condition ]CONNECT BY [ NOCYCLE ] conditionThe start with .. connect by clause can be used ...2012-08-21 21:13:15 · 124 阅读 · 0 评论 -
oracle中的over()方法
在涉及到一些复杂逻辑的查询中,简单的SQL不能有效查出想要的结果,需要借助oracle内置函数,比如over(),over方法是不单独使用,需要配合其它的方法来使用。先在简单介绍1.rank()over() 现在需要查询某个系的所有班级的成绩前三名名单: SQL可以这样来写 select name,class,scoure,sno from ...2012-05-27 18:48:08 · 777 阅读 · 0 评论
分享