我正在尝试编写从一个数据库到另一个数据库的点(influxdb-python),我已经创建了一个字典列表,并且我正在使用write_points(‘字典列表’)。我甚至试图通过只得到2分来简化事情。
这是我的代码和错误,请帮助
rs = cli.query("""SELECT * FROM cpu_value WHERE time > now() - 2s""")
points = rs.get_points()
a=next(points)
b=next(points)
temp=[]
temp.append(a)
temp.append(b)
client = InfluxDBClient(database='test')
client.write_points(temp)

发布于 2016-01-06 07:55:40
使用INTO clause从一个数据库写入到另一个数据库比通过外部库导出和导入点更容易。
https://stackoverflow.com/questions/34607093
复制相似问题