Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- connection.query('INSERT INTO user VALUES (12,' + req.body.text1 + ',' + req.body.text2 + ')'' , function () {...
- var data = { ИмяСтолбца1: 12, ИмяСтолбца2: req.body.text1, ИмяСтолбца3: req.body.text2 };
- var query = connection.query('INSERT INTO user SET ?', data, function () {...});
- console.log(query.sql); // тут будет выведет сформированный запрос
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement