erlangbureau / jamdb_oracle

Oracle Database driver for Erlang
MIT License
106 stars 48 forks source link

ORA-01461: can bind a LONG value only for insert into a LONG column #86

Closed balakumarrv closed 4 years ago

balakumarrv commented 4 years ago

I am trying to insert text file data to BLOB column datatype ,but it throws below error

ORA-01461: can bind a LONG value only for insert into a LONG column

I am using utl_raw.cast_to_raw(text file)

Tried below way

utl_raw.cast_to_raw(substr(textfile,1,2000)) it is inserting upto 2000 characters.

can someone help with this ?

vstavskyi commented 4 years ago

80 contains some answers

vstavskyi commented 4 years ago

TABLE T1 ( B1 BLOB)

{"update T1 set B1=utl_raw.cast_to_raw(substr(rpad('a',4000,'a'),1,2000)) return B1 into :1 ",[{out,<<>>}]}

pls, post your query with parameters