Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var sql = "INSERT INTO Test (name, email, n) VALUES ?";
- var values = [
- ['demian', 'demian@gmail.com', 1],
- ['john', 'john@gmail.com', 2],
- ['mark', 'mark@gmail.com', 3],
- ['pete', 'pete@gmail.com', 4]
- ];
- conn.query(sql, [values], function(err) {
- if (err) throw err;
- conn.end();
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement