有谁用过node-oracle 查询
 发布于 10 年前  作者 maxer028  4214 次预览  最后一次回复是 10 年前  来自 问答 

oracle.connect(connectData, function (err, connection) { if (err) { console.log(err); } else { connection.execute('select * from table where item IN ( :1 ) ', [ID], function (err, results) { if (err) { console.log(err); } else { … } connection.close(); }); } }); }

ID:‘12004’,‘12004’,‘12204’,‘100030’,‘100020’, node: /root/.node-gyp/0.10.33/src/node_object_wrap.h:61: static T* node::ObjectWrap::Unwrap(v8::Handlev8::Object) [with T = OutParam]: Assertion `handle->InternalFieldCount() > 0’ failed. Aborted 用in 查询时出错,有谁用过?

1 回复
dulante

这么写,:1 的值应该是[ID][0]吧