小编SAK*_*SAK的帖子

如何使用 X-devAPI 和 nodejs 在 SQL 中使用连接查询?

我正在使用 NodeJs。用于编写查询的连接器 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)
            });
Run Code Online (Sandbox Code Playgroud)

sql relational-database mysql-connector node.js

2
推荐指数
1
解决办法
541
查看次数