Comment by themerone 2 years ago My big wish for SQL is for single row inserts to have a {key: value} syntax. 3 comments themerone Reply zX41ZdbW 2 years ago 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 BostonFern 2 years ago MySQL has it without the braces. nickpeterson 2 years ago This would condense lines of code by a lot and prevent a lot of dumb bugs.
zX41ZdbW 2 years ago 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
In ClickHouse you can do
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.:
MySQL has it without the braces.
This would condense lines of code by a lot and prevent a lot of dumb bugs.