oracle 查看16进制

Posted kakaisgood

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了oracle 查看16进制相关的知识,希望对你有一定的参考价值。

DUMP function is useful for this purpose.

SQL> select dump(C1) from test;

DUMP(C1)
---------------------------------------------

Typ=96 Len=4: 48,49,53,48
Typ=96 Len=4: 48,48,49,48
Typ=96 Len=4: 48,48,53,48
Typ=96 Len=4: 48,49,48,48

Where : 
  Typ is Oracle data type ( In this case CHAR ), Len is data length. By default, the trailing numbers are stored data in decimal.

Users can add base number as second parameter.

SQL> select dump(C1,16) from test;

DUMP(C1,16)
------------------------------------------------

Typ=96 Len=4: 30,31,35,30
Typ=96 Len=4: 30,30,31,30
Typ=96 Len=4: 30,30,35,30
Typ=96 Len=4: 30,31,30,30

And if second parameter is 10xx, character set information will be displayed.

SQL> select dump(C1,1016) from test;

DUMP(C1,1016)
--------------------------------------------------------

Typ=96 Len=4 CharacterSet=JA16SJIS: 30,31,35,30
Typ=96 Len=4 CharacterSet=JA16SJIS: 30,30,31,30
Typ=96 Len=4 CharacterSet=JA16SJIS: 30,30,35,30
Typ=96 Len=4 CharacterSet=JA16SJIS: 30,31,30,30

Note that the DUMP function does not support LOB data.




























以上是关于oracle 查看16进制的主要内容,如果未能解决你的问题,请参考以下文章

oracle中编写一个方法将查询出的数据十进制转十六进制谢谢大神

oracle数据库提取数据为十六进制如何转换

oracle进制转换

linux怎么安装oracle

如何更改Oracle字符集

如何在python中将十六进制字符串转换为二进制以使用cx_oracle插入