zlacker

[return to "Google's new pipe syntax in SQL"]
1. themer+u6a[view] [source] 2024-08-29 00:42:35
>>heyden+(OP)
My big wish for SQL is for single row inserts to have a {key: value} syntax.
◧◩
2. zX41Zd+Jca[view] [source] 2024-08-29 01:43:21
>>themer+u6a
In ClickHouse you can do

    INSERT INTO table FORMAT JSONEachRow {"key": 123}
It works with all other formats as well.

Plus, it is designed in a way so you can make an INSERT query and stream the data, e.g.:

    clickhouse-client --query "INSERT INTO table FORMAT Protobuf" < data.protobuf

    curl 'https://example.com/?query=INSERT...' --data-binary @- < data.bson
[go to top]