11 lines
352 B
JavaScript
11 lines
352 B
JavaScript
const con = require('./connect.js')
|
|
|
|
con.con.connect(function(err) {
|
|
if (err) throw err;
|
|
console.log("Connected!");
|
|
var sql = "INSERT INTO vn.smartTag (code, shelvingFk, `level`) VALUES('A0A3B8200DA1', 'ABC', 2);";
|
|
con.con.query(sql, function (err, result) {
|
|
if (err) throw err;
|
|
console.log("1 record inserted");
|
|
});
|
|
}); |