user1773207
user1773207

Reputation: 51

Insert blank blob data in oracle using c

I am trying to insert blank data in blob column of table using C program in oracle database but it is inserting as Null, How to make it blank instead of null.data type is lpBlob.

Upvotes: 1

Views: 3940

Answers (1)

Justin Cave
Justin Cave

Reputation: 231661

Depending on your definition of "blank", my assumption is that you want to use the empty_blob function

INSERT INTO table_name( ..., blob_column_name )
  VALUES( ..., empty_blob() );

Upvotes: 4

Related Questions