nodejs ORA-01461:只能为插入到LONG列而绑定LONG值

时间:2020-07-11 18:35:24

标签: javascript node.js oracle clob node-oracledb

我正在尝试使用oracledb在nodejs中插入数据,但是我在CLOB列上收到“ ORA-01461:只能为插入到LONG列而绑定LONG值”。以下是我的代码

select Large_price
from New_Item
where Sub_Category='Sub' or Small_price='' or  Medium_price='' or Large_price='300'

MESSAGE列为CLOB时出错。从长度为34886的xml文件中读取message变量中的数据,这对于CLOB来说并不多。

在sql Developer上运行相同的查询,它将成功插入数据

谢谢。

0 个答案:

没有答案
相关问题