--在oracle中创建带有lob字段的表,对于lob字段,最好指定专用的lob 表空间,因为对LOB字段进行update和Delete操作时候,它的Undo信息不是放在Undo 表空间中, 而是放在自己的LOB段中。 因此当对LOB数据更新操作时, 只要表空间还有足够剩余, LOB 段就会选择不断扩展
name varchar2(100),
photo blob
)
(tablespace lob_tbs
disable storage in row
nocache logging
);
--在11g中,使用securefile选项
--建表语句:
create table customer
( id_customer varchar2(32),
lob (photo) store as securefile
--加字段语句
alter table tablename add column clob
lob(column) store assecurefile
(tablespace lob_tbs
disable storage in row
nocache logging);