connection.query( "INSERT INTO xtable (x_date, x_time, x_text) VALUES (?, ?, ?)", [ ydate, ytime, ytext ], function (err, result) { // ... } }