Author:NinGoo posted on NinGoo.net
在Oracle10g及以前版本的sqlplus中,不能直接显示blob或者bfile类型的数据:
SQL
>
create
table
t
(
b
blob
)
;
Table created .
SQL > insert into t values ( ' 1 ' ) ;
1 row created .
SQL > select * from t ;
SP2 - 0678 : Column or attribute type can not be displayed by SQL * Plus
Table created .
SQL > insert into t values ( ' 1 ' ) ;
1 row created .
SQL > select * from t ;
SP2 - 0678 : Column or attribute type can not be displayed by SQL * Plus
Oracle11g中,sqlplus的这个限制已经取消,可以在sqlplus中直接显示blob和bfile类型的数据:
SQL
>
create
table
t
(
b
blob
)
;
Table created .
SQL > insert into t values ( ' 1 ' ) ;
1 row created .
SQL > select * from t ;
B
--------------- --
1
Table created .
SQL > insert into t values ( ' 1 ' ) ;
1 row created .
SQL > select * from t ;
B
--------------- --
1
Related Articles
- Oracle11g新特性:server result cache续
- Installing Oracle Database 11g on Windows
- Oracle11g新特性:只读表(read only table)
- Oracle11g新特性:使用PIVOT/UNPIVOT进行行列转换
- 遭遇Oracle11g第一个bug
本文介绍Oracle11g数据库的新特性,即在SQL*Plus中可以直接显示Blob和Bfile类型的数据,解决了Oracle10g及之前版本无法直接显示的问题。
1261

被折叠的 条评论
为什么被折叠?



