wrap用法
来源:互联网 发布:mac office 2016好用吗 编辑:程序博客网 时间:2024/05/21 14:54
get_deptno.sql:
create or replace function get_deptno
(p_deptno in varchar2)
return varchar2
is
p_deptname varchar2(10);
begin
select dname into p_deptname from dept where deptno = p_deptno;
return p_deptname ;
end;
/
select get_deptno(20) from dual
wrap iname=get_deptno.sql oname=get_deptno.plb
drop function get_deptno;
@get_deptno.plb;
select get_deptno(20) from dual;
/////////////////////////////////////////////////////////////////
ora10glin->ls
Desktop get_deptno.sql
ora10glin->sqlplus /nolog
SQL*Plus: Release 10.2.0.1.0 - Production on Fri Nov 27 11:54:28 2009
Copyright (c) 1982, 2005, Oracle. All rights reserved.
SQL> conn scott/tiger
Connected.
SQL> @get_deptno.sql;
Function created.
ora10glin->wrap iname=get_deptno.sql oname=get_deptno.plb
PL/SQL Wrapper: Release 10.2.0.1.0- Production on Fri Nov 27 11:55:22 2009
Copyright (c) 1993, 2004, Oracle. All rights reserved.
Processing get_deptno.sql to get_deptno.plb
ora10glin->ls
Desktop get_deptno.plb get_deptno.sql
ora10glin->cat get_deptno.plb
create or replace function get_deptno wrapped
a000000
1
abcd
abcd
abcd
abcd
abcd
abcd
abcd
abcd
abcd
abcd
abcd
abcd
abcd
abcd
abcd
8
c7 c2
OT3ACF+2ruL4CpD94I6vluqVGPkwgy7cf8vWZ3QebuowRjsBADJTGURXvdOO5toztZ1NTcs3
SdotYv4TFJbFBLSdWB8fY8kmdOmlSqfUEUwM1LwxQg7CCSrUWC2GMCrQEv24rId6jqjYelLA
XaoO49XRRO0pX0zugsJ//EbB7rNnTbbRJmdWrWg/T69/dw==
/
SQL> drop function get_deptno;
Function dropped.
SQL> @get_deptno.plb;
Function created.
SQL> select get_deptno(20) from dual
2 ;
GET_DEPTNO(20)
--------------------------------------------------------------------------------
RESEARCH
/////////////////////////////////////////////////////////////////
如果出现如下错误:
kgepop: no error frame. to pop to for error 1801
则需要设置正确的环境变量:NLS_LANG
例如在WIndows下可以如下设置:
C:/oracle/ora92/bin>set NLS_LANG=CHINESE_CHINA.ZHS16GBK(根据具体环境确定)
- wrap用法
- wrap 用法
- lingo中@wrap的用法
- wrap
- wrap
- wrap()
- css3中word-wrap的用法?
- word-wrap,word-break,white-space,text-overflow的用法
- 关于jQuery自动生成html代码的方法--wrap用法
- jQuery中wrap和wrapAll用法以及区别
- jQuery中wrap、wrapAll和wrapInner用法以及区别
- jQuery中wrap、wrapAll和wrapInner用法以及区别
- word-wrap,word-break,white-space,text-overflow的区别和用法
- [转载 css]word-wrap,word-break,white-space,text-overflow的区别和用法
- [转载 css]word-wrap,word-break,white-space,text-overflow的区别和用法
- word-wrap,word-break,white-space,text-overflow的区别和用法
- word-wrap,word-break,white-space,text-overflow的区别和用法 文字处理方法
- word-wrap,word-break,white-space,text-overflow的区别和用法
- 芯片
- C++版_splitpath
- 开源BI平台Openi的开发数据仓库系统(下)
- JSF session的用法
- 【转】毕业5年决定你的命运
- wrap用法
- java获取中文拼音
- FindFirstStore函数 按扇区读取Windows Mobile的数据
- oracle10g数据导入导入导出
- session在何时被创建
- 迁移方法(Move Method)--代码重构2
- 不得不说,CSDN的Blog很难用
- (转)c++标示符和关键字
- 实现AlphaBlend混合实现透明的代码