![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
ORACLE_SQL
ncuitcast
这个作者很懒,什么都没留下…
展开
-
connect by level<n返回的记录条数
connect by是ORACLE 提供的层查询时用的,遍历树状。语法是:select lpad(ename,(level-1)*4+20,' '),mgr,LEVEL from emp where 1=1 connect by prior empno=mgr start with mgr is null;start with指定作为根结点的条件,如start with mgr i...原创 2014-02-13 11:25:53 · 105 阅读 · 0 评论 -
INSTR字符串函数
INSTR (源字符串, 目标字符串, 起始位置, 匹配序号) 在Oracle/PLSQL中,instr函数返回要截取的字符串在源字符串中的位置。只检索一次,就是说从字符的开始到字符的结尾就结束。 语法如下: [code="java"]instr( string1, string2 [, start_position [, nth_appear...2014-02-13 17:14:06 · 329 阅读 · 0 评论 -
SQL 错误: ORA-00600: 内部错误代码, 参数: [qcsfbdnp:1], [], [], [], []
[code="java"]call CREATEZHIBIAOPART2('cy_prop_reason','2014-02-18','PropReason');commit;call CY_ALL_GAOJINSHUCHU('2014-02-18');commit;[/code][code="java"]在行 145 上开始执行命令时出错:call CY_ALL_GA...2014-02-21 17:30:16 · 4340 阅读 · 0 评论 -
oracle表空间使用率统计查询
参考文献 文献1:http://blog.itpub.net/24104518/viewspace-730682,字符有格式,需要清理一下 文献2:http://www.cnblogs.com/fengyun627/archive/2009/07/27/1532551.html 文献3:http://blog.csdn.net/hproc/article/details/7...2014-02-25 18:50:28 · 162 阅读 · 0 评论 -
BOM物料表从connect_by_isleaf说起
下面这样写是错的。写出这样的语句的实质就是自己误导自己。[code="java"]with test_cc as ( select 'A' root,'B' parent_root from dual union select 'B','C' from dual union select 'C','D' from dual union select 'C...2014-03-05 13:51:05 · 191 阅读 · 0 评论 -
让人无语的INSERT语句报错
[img]http://dl2.iteye.com/upload/attachment/0094/6661/00e763df-76bb-3483-9ba0-8ad85606079e.jpg[/img][img]http://dl2.iteye.com/upload/attachment/0094/6663/4f86e578-1e25-367d-9b36-8abcca7baeb1...2014-03-10 14:03:10 · 280 阅读 · 0 评论