mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-18 20:32:43 +00:00
17 lines
785 B
Bash
17 lines
785 B
Bash
|
#!/usr/bin/env bash
|
||
|
|
||
|
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
||
|
# shellcheck source=../shell_config.sh
|
||
|
. "$CURDIR"/../shell_config.sh
|
||
|
|
||
|
# clickhouse-local has --input-format and --output-format parameters,
|
||
|
# and also the --format parameter which is the default for both input and output formats, but has less preference.
|
||
|
|
||
|
# clickhouse-client does not have the --input-format parameter.
|
||
|
# However, it accepts both --format and --output-format for convenience.
|
||
|
|
||
|
${CLICKHOUSE_LOCAL} --output-format Markdown --query "SELECT 'Hello, world' AS x"
|
||
|
${CLICKHOUSE_CLIENT} --output-format Markdown --query "SELECT 'Hello, world' AS x"
|
||
|
${CLICKHOUSE_LOCAL} --format Markdown --query "SELECT 'Hello, world' AS x"
|
||
|
${CLICKHOUSE_CLIENT} --format Markdown --query "SELECT 'Hello, world' AS x"
|