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

13 lines
380 B
JavaScript

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