描述:
查询Cassandra数据库,结果值返回成游标
语法:
stax_cursor(staxClient, cql, [arg1], [arg2], ...)
备注:
外部库函数,查询Cassandra数据库,结果值返回成游标
参数:
staxClient |
数据库连接句柄 |
cql |
需要查询的cql语句 |
args |
参数值,可省略 |
示例:
|
A |
|
1 |
=stax_open("127.0.0.1":9042, "mycasdb","cassandra":"cassandra") |
Cassandra数据库连接 |
2 |
=stax_cursor(A1,"select * from user") |
查询并返回成游标 |
3 |
=A2.fetch() |
|
4 |
=stax_close(A1) |
|