node-query/node_modules/mysql2/examples/simple-select.js

6 lines
167 B
JavaScript
Raw Normal View History

var mysql = require('../test/common').createConnection();
mysql.query("select * from foos limit 10", function(err, rows, fields) {
console.log(rows, fields);
});