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

conn = taos.connect(host='127.0.0.1',
                    user='root',
                    passworkd='taodata',
                    database='log')
cursor = conn.cursor()

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