mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 09:02:00 +00:00
example marked with ``bash not
``text
This commit is contained in:
parent
5b8f63a6f3
commit
85169c03ba
@ -81,7 +81,7 @@ In a batch mode query data can be passed via `stdin`.
|
|||||||
|
|
||||||
In the following example a table is created and loaded with data from a CSV file. Then the content of the table is queried.
|
In the following example a table is created and loaded with data from a CSV file. Then the content of the table is queried.
|
||||||
|
|
||||||
``` text
|
``` bash
|
||||||
./clickhouse-grpc-client.py -q "CREATE TABLE grpc_example_table (id UInt32, text String) ENGINE = MergeTree() ORDER BY id;"
|
./clickhouse-grpc-client.py -q "CREATE TABLE grpc_example_table (id UInt32, text String) ENGINE = MergeTree() ORDER BY id;"
|
||||||
echo "0,Input data for" > a.txt ; echo "1,gRPC protocol example" >> a.txt
|
echo "0,Input data for" > a.txt ; echo "1,gRPC protocol example" >> a.txt
|
||||||
cat a.txt | ./clickhouse-grpc-client.py -q "INSERT INTO grpc_example_table FORMAT CSV"
|
cat a.txt | ./clickhouse-grpc-client.py -q "INSERT INTO grpc_example_table FORMAT CSV"
|
||||||
|
@ -81,7 +81,7 @@ ClickHouse поддерживает интерфейс [gRPC](https://grpc.io/).
|
|||||||
|
|
||||||
В примере создается таблица, и в нее загружаются данные из CSV файла. Затем выводится содержимое таблицы.
|
В примере создается таблица, и в нее загружаются данные из CSV файла. Затем выводится содержимое таблицы.
|
||||||
|
|
||||||
``` text
|
``` bash
|
||||||
./clickhouse-grpc-client.py -q "CREATE TABLE grpc_example_table (id UInt32, text String) ENGINE = MergeTree() ORDER BY id;"
|
./clickhouse-grpc-client.py -q "CREATE TABLE grpc_example_table (id UInt32, text String) ENGINE = MergeTree() ORDER BY id;"
|
||||||
echo "0,Input data for" > a.txt ; echo "1,gRPC protocol example" >> a.txt
|
echo "0,Input data for" > a.txt ; echo "1,gRPC protocol example" >> a.txt
|
||||||
cat a.txt | ./clickhouse-grpc-client.py -q "INSERT INTO grpc_example_table FORMAT CSV"
|
cat a.txt | ./clickhouse-grpc-client.py -q "INSERT INTO grpc_example_table FORMAT CSV"
|
||||||
|
Loading…
Reference in New Issue
Block a user