query_example.js 324 字节
Newer Older
D
dingbo 已提交
1 2 3 4 5 6 7 8
const taos = require("td2.0-connector");

const conn = taos.connect({ host: "localhost", database: "power" });
const cursor = conn.cursor();
const query = cursor.query("SELECT ts, current FROM meters LIMIT 2");
query.execute().then(function (result) {
  result.pretty();
});
D
dingbo 已提交
9
// 目前执行失败,原因不明: TD-14448