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

前端 未结 15 1751
野的像风
野的像风 2020-11-30 02:44

When I try to query objects, I end up with following error:

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

Could someo

15条回答
  •  自闭症患者
    2020-11-30 03:12

    Kiran's answer is definetely the answer for my case.

    In code part I split string to 4000 char strings and try to put them in to db.

    Explodes with this error.

    The cause of the error is using utf chars, those counts 2 bytes each. Even I truncate to 4000 chars in code(sth. like String.Take(4000)), oracle considers 4001 when string contains 'ö' or any other non-eng(non ascii to be precise, which are represented with two or bytes in utf8) characters.

提交回复
热议问题