mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 16:12:01 +00:00
19 lines
488 B
Bash
Executable File
19 lines
488 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
|
# shellcheck source=../shell_config.sh
|
|
. "$CURDIR"/../shell_config.sh
|
|
|
|
${CLICKHOUSE_CLIENT} --query "
|
|
DROP TABLE IF EXISTS t;
|
|
CREATE TABLE t (a String, b String) ENGINE = Memory;
|
|
"
|
|
|
|
${CLICKHOUSE_CLIENT} --format_regexp_escaping_rule 'Raw' --format_regexp '^(.+?) separator (.+?)$' --query '
|
|
INSERT INTO t FORMAT Regexp abc\ separator Hello, world!'
|
|
|
|
${CLICKHOUSE_CLIENT} --query "
|
|
SELECT * FROM t;
|
|
DROP TABLE t;
|
|
"
|