10 lines
333 B
JavaScript
10 lines
333 B
JavaScript
const con = require('./connect.js');
|
|
|
|
con.con.connect(function(err) {
|
|
if (err) throw err;
|
|
let sql = 'CREATE TABLE smartTag2 (code VARCHAR(100) PRIMARY KEY, shelvingFk VARCHAR(10) FOREIGN KEY REFERENCES vn.shelving(code), level INT(11))';
|
|
con.con.query(sql, function(err, result) {
|
|
if (err) throw err;
|
|
});
|
|
});
|