This repository has been archived on 2024-10-02. You can view files and clone it, but cannot push or open issues or pull requests.
smart-tag/db/selectTicket.js

13 lines
291 B
JavaScript

const con = require('./connect');
function select(ticket, callback) {
let sql = `SELECT * FROM vn.collectionSmartTag WHERE ticketFk = ?`;
con.query(sql, ticket, function(err, result) {
if (err) throw err;
callback(null, result);
});
}
exports.select = select;