通过API插入Clickhouse数据 [英] clickhouse data insertion through API

查看:1877
本文介绍了通过API插入Clickhouse数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以使用get方法从clickhouse数据库中获取数据, 同样,我想使用post方法插入数据. 反正他们是那样做的吗

I can get data from the clickhouse database using get method, Similarly i want to insert data using post method . Is their anyway to do like that

推荐答案

仅允许使用POST方法修改HTTP接口中的数据.

Modification of data in HTTP interface is allowed using POST method only.

请查看下面在Clickhouse官方文档中给出的示例.

Check out example given below on Clickhouse official documentation.

echo 'INSERT INTO t VALUES (1),(2),(3)' | curl 'http://localhost:8123/' --data-binary @-

https://clickhouse.yandex/docs/en/interfaces/http_interface/

使用帖子图像进行编辑.

Edit With Post Image.

插入后邮递员和Clickhouse客户端的屏幕截图

这篇关于通过API插入Clickhouse数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆