CNode

有谁用过node-oracle 查询

问答
Mmaxer028发布于11 年前最后回复11 年前1 回复4327 浏览0 收藏

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)

D
dulante#1·11 年前

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

参与回复
登录后即可参与回复。登录