上一页 1 2 3 4 5 6 7 ··· 9 下一页
  2009年3月11日
摘要: select x.ksppinm name, decode(bitand(ksppiflg/256,1),1,'TRUE','FALSE') sesmod, decode( bitand(ksppiflg/65536,3), 1,'IMMEDIATE', 2,'DEFERRED', 3,'IMMEDIATE', 'FALSE' ) s... 阅读全文
posted @ 2009-03-11 16:02 Oracle 阅读(135) 评论(0) 推荐(0) 编辑
摘要: 1. 选用适合的ORACLE优化器 ORACLE的优化器共有3种: a. RULE (基于规则) b. COST (基于成本) c. CHOOSE (选择性) 设置缺省的优化器,可以通过对init.ora文件中OPTIMIZER_MODE参数的各种声明,如RULE,COST,CHOOSE,ALL_ROWS,FIRST_ROWS . ... 阅读全文
posted @ 2009-03-11 11:40 Oracle 阅读(271) 评论(0) 推荐(0) 编辑
摘要: create or replace procedure put_line_unlimit( p_string in varchar2 ) is l_string long default p_string; begin loop exit when l_string is null; dbms_output.put_line( substr( l_string, 1... 阅读全文
posted @ 2009-03-11 10:40 Oracle 阅读(219) 评论(0) 推荐(0) 编辑
  2009年3月10日
摘要: 安装 用sys用户运行脚本ultxplan.sql 建立这个表的脚本是:(UNIX:$ORACLE_HOME/rdbms/admin, Windows:%ORACLE_HOME%"rdbms"admin)ultxplan.sql。 SQL> connect sys/sys@colm2 as sysdba; SQL> @C:"oracle"ora92"rdbms"admin"utlxplan.sql... 阅读全文
posted @ 2009-03-10 17:37 Oracle 阅读(306) 评论(0) 推荐(0) 编辑
  2009年3月1日
摘要: create or replace package hierarchy is type strtabletype is table of varchar2(4000) index by binary_integer; strtable strtabletype; type numtabletype is table of number index by binary_integer; ... 阅读全文
posted @ 2009-03-01 21:27 Oracle 阅读(849) 评论(0) 推荐(0) 编辑
摘要: 下面是文档中的话 The following statement translates a license number. All letters 'ABC...Z' are translated to 'X' and all digits '012 . . . 9' are translated to '9': SELECT TRANSLATE('2KRW229', '01234567... 阅读全文
posted @ 2009-03-01 19:26 Oracle 阅读(6898) 评论(1) 推荐(0) 编辑
  2009年2月26日
摘要: ORA-01002: fetch out of sequence Cause: This error means that a fetch has been attempted from a cursor which is no longer valid. Note that a PL/SQL cursor loop implicitly does fetches, and thus may a... 阅读全文
posted @ 2009-02-26 15:10 Oracle 阅读(1526) 评论(0) 推荐(0) 编辑
  2009年2月25日
摘要: 1、固定列数的行列转换 如 student subject grade --------- ---------- -------- student1 语文 80 student1 数学 70 student1 英语 60 student2 语文 90 student2 数学 80 student2 英语 100 …… 转换为 语文 数学 英语 student1 80 70 60 student2 ... 阅读全文
posted @ 2009-02-25 16:59 Oracle 阅读(29192) 评论(1) 推荐(2) 编辑
摘要: 最近把oracle嵌套表的其他功能仔细看了看并做了个简单整理。 oracle提供两种使用嵌套表的方法: 1. PL/SQL代码中作为扩展PL/SQL语言;(这部分内容就是上边所说oracle内存表是oracle嵌套表的部分功能) 2. 作为物理存储机制,以持久地存储集合。 */ --创建测试表: CREATE TABLE dept (deptno NUMBER(2) PRIMARY... 阅读全文
posted @ 2009-02-25 13:43 Oracle 阅读(743) 评论(0) 推荐(0) 编辑
摘要: CREATE type addrs_type IS TABLE OF varchar2(128); create table employye ( eoid number(4),mailaddr addrs_type) nested table mailaddr store as addr_table ; insert into employye values(123,addrs_typ... 阅读全文
posted @ 2009-02-25 12:24 Oracle 阅读(341) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 9 下一页