请给出使用python从clickhouse导出数据的最佳方法。在
现在我正在使用此代码,但有一个错误,说明无法访问hotsname。在
from clickhouse_driver import Client
client=Client(host='http://ipaddress',user='user',password='pass',port=8123)
print(client.execute('select * from table limit 5'))
有其他的方法吗?在
Tags:
在你提供的代码示例中
您将
http://ipaddress
设置为无效的主机名,如果将其更改为有效的主机名,它应该可以正常工作。在相关问题 更多 >
编程相关推荐