I am trying to get rows where id in 1,2,3.
Here is my code:
app.use('/', async function(req, res, next){
try{
var query = await connection.execute(`SELECT * FROM ERROR_LIST WHERE ID IN :1`, [[1,2,3]]);
console.log(query);
res.send(query.rows)
} catch(err) {
next(err);
}
next();
});
As the result: ORA-01484: arrays can only be bound to PL/SQL statements