demo.py 278 字节
Newer Older
1 2 3 4
import taos

conn = taos.connect(host='127.0.0.1',
                    user='root',
5
                    password='taosdata',
6 7 8 9 10 11 12
                    database='log')
cursor = conn.cursor()

sql = "select * from log.log limit 10"
cursor.execute(sql)
for row in cursor:
    print(row)