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/selectCollection.js

15 lines
438 B
JavaScript

const con = require('./connect');
function selectCollectionSmartTag(collectionFk, callback) {
let consSql = `SELECT * FROM vn.collectionSmartTag WHERE collectionFk = ${collectionFk};`;
console.log(consSql);
con.con.query(consSql, function(err, result, fields) {
console.log(result);
callback(null, result);
console.log(result);
});
}
exports.selectCollectionSmartTag = selectCollectionSmartTag;