dump函数

Oracle PL/SQL DUMP 函数详解
本文详细介绍了Oracle PL/SQL中DUMP函数的使用方法及其参数含义,通过实例展示了不同返回格式下DUMP函数的具体输出结果,包括八进制、十进制、十六进制等。

在oracle pl/sql中有dump的函数:

官方文档的描述是: DUMP returns a VARCHAR2 value containing the datatype code, length in bytes, and internal representation of expr..

语法格式是:

DUMP( expression, [return_format], [start_position], [length] )

ValueExplanation
8octal notation                                                                     八进制
10decimal notation                                                               十进制
16hexadecimal notation                                                       十六进制
17single characters                                                               单个字符
10 08octal notation with the character set name                    八进制符号和字符集名称
10 10decimal notation with the character set name
10 16hexadecimal notation with the character set name
10 17single characters with the character set name


sys@LS1>select dump('Good',16) from dual;

DUMP('GOOD',16)
-------------------------
Typ=96 Len=4: 47,6f,6f,64

sys@LS1>select dump('Good',1016) from dual;

DUMP('GOOD',1016)
-----------------------------------------------
Typ=96 Len=4 CharacterSet=ZHS16GBK: 47,6f,6f,64

sys@LS1>select dump('Good',1017) from dual;

DUMP('GOOD',1017)
-------------------------------------------
Typ=96 Len=4 CharacterSet=ZHS16GBK: G,o,o,d


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值