mardi 14 avril 2015

Is it possible to use delete with multiple selectors in nodejs?


Vote count:

0




When I try to do something like this;



var remove = {plan_id: 30, attrac_id: 1};

connection.query('DELETE FROM table_name WHERE ?' ,remove, function(err, data, fields){
console.log(err);
})


I get a MySQL syntax error, around "attrac_id: 1" is it possible to use 'AND' operator?


Many Thanks, Lewis



asked 31 secs ago







Is it possible to use delete with multiple selectors in nodejs?

Aucun commentaire:

Enregistrer un commentaire