node-query/node_modules/mysql2/examples/prepare.js

6 lines
185 B
JavaScript

var mysql = require('../test/common').createConnection();
mysql.prepare("SELECT * from mysql.user into outfile '/tmp/mysql.user.txt'", function(err, stmt) {
console.log(stmt);
});