wrap 用法
来源:互联网 发布:奥凯软件官网 编辑:程序博客网 时间:2024/05/17 02:32
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的区别和用法
- Eclipse快捷键
- 网页中文章的拷贝
- 回首自己这大半年!
- 电子书格式,ePub将是趋势
- 服务器部分组件(FSO、XMLDOM、MSXML2)的安装方法
- wrap 用法
- 第一次滑雪经过——教你如何省钱
- 放手……?
- C# 方法
- 类的对象和类的指针的区别
- mysql游标处理
- 需求说明书的格式
- Spring中集合合并
- 一道面试题:生成50个1到100之间的随机数,并且对其中的偶数进行降序排列 然后让他里面的数能够打乱,类似洗牌效果