sql - Alter Table - add Default value for a COLUMN type BLOB -
sql - Alter Table - add Default value for a COLUMN type BLOB -
executing below sql giving error .
alter table table_name add together file_data blob null default 'empty_blob()' error starting @ line 37 in command: alter table table_name add together file_data blob null default 'empty_blob()' error report: sql error: ora-30649: missing directory keyword 30649.0000 - "missing directory keyword" *cause: default directory clause missing or incorrect. *action: provide default directory.
could help me out ?
i can either create new column of type blob , or can convert same column created varchar default value - , alter type blob . not able either of them .
assuming want default value empty blob rather string 'empty_blob()', you'd need remove quotes
sql> create table new_table ( 2 col1 number 3 ); table created. sql> alter table new_table 2 add( file_data blob default empty_blob() ); table altered. sql table oracle10g blob alter
Comments
Post a Comment