【发布时间】:2019-04-08 10:20:31
【问题描述】:
我正在使用 NodeJ。用于编写查询的连接器 X-devAPI。我需要使用连接查询。如何编写查询?
const session = mySqlx.getSession(config);
const schema = await session.getSchema('xxxx');
let tableresp = await schema.getTable('tableName');
tableresp = await tableresp
.select(['id', 'name', 'Mobile'])
.execute(function (row) {
console.log(row)
});
【问题讨论】:
标签: sql node.js relational-database mysql-connector