query-objectively.py 278 字节
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12
import taos

conn = taos.connect()
conn.execute("create database if not exists pytest")

result = conn.query("show databases")
num_of_fields = result.field_count
for field in result.fields:
    print(field)
for row in result:
    print(row)
conn.execute("drop database pytest")