有谁用过node-oracle 查询
发布于 9 年前 作者 maxer028 3721 次浏览 最后一次编辑是 8 年前 来自 问答

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 回复

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

回到顶部