提交 1780a69f 编写于 作者: S StoneT2000

Update readme.md

上级 f0bca7fb
......@@ -135,8 +135,8 @@ Async queries can be performed using the same functions such as `cursor.execute`
Say you want to execute an two async query on two seperate tables, using `cursor.query_a`, you can do that and get a TaosQuery object, which upon executing with the `execute_a` function, returns a promise that resolves with a TaosResult object.
```javascript
var promise1 = cursor.query_a('select count(*), avg(v1), avg(v2) from meter1;').execute_a()
var promise2 = cursor.query_a('select count(*), avg(v1), avg(v2) from meter2;').execute_a();
var promise1 = cursor.query('select count(*), avg(v1), avg(v2) from meter1;').execute_a()
var promise2 = cursor.query('select count(*), avg(v1), avg(v2) from meter2;').execute_a();
promise1.then(function(result) {
result.pretty();
})
......@@ -158,4 +158,4 @@ Please follow the [contribution guidelines](https://github.com/taosdata/TDengine
## License
[GNU AGPL v3.0](http://www.gnu.org/licenses/agpl-3.0.html)
\ No newline at end of file
[GNU AGPL v3.0](http://www.gnu.org/licenses/agpl-3.0.html)
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册