在Oracle中增加BLOB数据类型大小的语法是什么?

时间:2012-04-16 15:09:41

标签: oracle oracle10g

文档说:

ALTER TABLE <table name>

ADD (<lobcol> <LOBTYPE> <LOB_clause_same_as_for_create>) |

MODIFY LOB (<lobcol>) (

            [PCTVERSION <version_number>]

            [ { CACHE | NO CACHE [{LOGGING | NOLOGGING}]

                      | CACHE READS [{LOGGING | NOLOGGING}]

              }

            ]

) |

MOVE [ONLINE] [<physical_attributes>] [TABLESPACE <tablespace_name>]

[LOGGING | NOLOGGING] [<LOB_clause_same_as_for_create>]

举例:

ALTER TABLE test_lob

MODIFY LOB (image) (

    STORAGE (NEXT 1M)

    CACHE

);

我用我的表名和列名尝试了这个:

ALTER TABLE  <table name>

MODIFY LOB (<column name>) (

    STORAGE (NEXT 10M)

);

但我得到ORA-25150更改范围参数不允许错误。

我做错了什么?

1 个答案:

答案 0 :(得分:2)

您的代码中缺少表名

ALTER TABLE

MODIFY LOB (<column name>) (
STORAGE (NEXT 10M)

);

应该是

ALTER TABLE TABLE_NAME
MODIFY LOB (<column name>) (

STORAGE (NEXT 10M)

);