码迷,mamicode.com
首页 > 数据库 > 详细

oracle 查看16进制

时间:2017-12-12 15:06:55      阅读:253      评论:0      收藏:0      [点我收藏+]

标签:for   pos   default   mat   type   oracl   length   nbsp   gpo   

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进制

标签:for   pos   default   mat   type   oracl   length   nbsp   gpo   

原文地址:http://www.cnblogs.com/kakaisgood/p/8027448.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!