The Connector section of the official website reconstructs the C language interface description
This commit is contained in:
parent
04f9a611c0
commit
0bfa9bcf8f
|
@ -56,7 +56,7 @@ result = taos_query_with_reqid(taos, "USE power", 2L);
|
||||||
taos_free_result(result);
|
taos_free_result(result);
|
||||||
|
|
||||||
// query data
|
// query data
|
||||||
const char* sql = "SELECT * FROM power.meters";
|
const char* sql = "SELECT ts, current, location FROM power.meters limit 1";
|
||||||
result = taos_query_with_reqid(taos, sql, 3L);
|
result = taos_query_with_reqid(taos, sql, 3L);
|
||||||
code = taos_errno(result);
|
code = taos_errno(result);
|
||||||
if (code != 0) {
|
if (code != 0) {
|
||||||
|
|
Loading…
Reference in New Issue