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

Popular posts from this blog

c# - Move local mssql database to webhosted MYSQL -

java - How to pass parameters between Request-Scoped Controllers? -

string - what is the difference between "some" == "some\0" and strcmp("some","some\0") in c++? -