mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-05 15:21:43 +00:00
39 lines
4.7 KiB
Plaintext
39 lines
4.7 KiB
Plaintext
CREATE TABLE default.check_query_comment_column\n(\n `first_column` UInt8 DEFAULT 1 COMMENT \'comment 1\',\n `second_column` UInt8 MATERIALIZED first_column COMMENT \'comment 2\',\n `third_column` UInt8 ALIAS second_column COMMENT \'comment 3\',\n `fourth_column` UInt8 COMMENT \'comment 4\',\n `fifth_column` UInt8\n)\nENGINE = TinyLog
|
|
first_column UInt8 DEFAULT 1 comment 1
|
|
second_column UInt8 MATERIALIZED first_column comment 2
|
|
third_column UInt8 ALIAS second_column comment 3
|
|
fourth_column UInt8 comment 4
|
|
fifth_column UInt8
|
|
┌─table──────────────────────┬─name──────────┬─comment───┐
|
|
│ check_query_comment_column │ first_column │ comment 1 │
|
|
│ check_query_comment_column │ second_column │ comment 2 │
|
|
│ check_query_comment_column │ third_column │ comment 3 │
|
|
│ check_query_comment_column │ fourth_column │ comment 4 │
|
|
│ check_query_comment_column │ fifth_column │ │
|
|
└────────────────────────────┴───────────────┴───────────┘
|
|
CREATE TABLE default.check_query_comment_column\n(\n `first_column` UInt8 DEFAULT 1 COMMENT \'comment 1_1\',\n `second_column` UInt8 MATERIALIZED first_column COMMENT \'comment 2_1\',\n `third_column` UInt8 ALIAS second_column COMMENT \'comment 3_1\',\n `fourth_column` UInt8 COMMENT \'comment 4_1\',\n `fifth_column` UInt8 COMMENT \'comment 5_1\'\n)\nENGINE = TinyLog
|
|
┌─table──────────────────────┬─name──────────┬─comment─────┐
|
|
│ check_query_comment_column │ first_column │ comment 1_2 │
|
|
│ check_query_comment_column │ second_column │ comment 2_2 │
|
|
│ check_query_comment_column │ third_column │ comment 3_2 │
|
|
│ check_query_comment_column │ fourth_column │ comment 4_2 │
|
|
│ check_query_comment_column │ fifth_column │ comment 5_2 │
|
|
└────────────────────────────┴───────────────┴─────────────┘
|
|
CREATE TABLE default.check_query_comment_column\n(\n `first_column` UInt8 DEFAULT 1 COMMENT \'comment 1_2\',\n `second_column` UInt8 MATERIALIZED first_column COMMENT \'comment 2_2\',\n `third_column` UInt8 ALIAS second_column COMMENT \'comment 3_2\',\n `fourth_column` UInt8 COMMENT \'comment 4_2\',\n `fifth_column` UInt8 COMMENT \'comment 5_2\'\n)\nENGINE = TinyLog
|
|
CREATE TABLE default.check_query_comment_column\n(\n `first_column` UInt8 COMMENT \'comment 1\',\n `second_column` UInt8 COMMENT \'comment 2\',\n `third_column` UInt8 COMMENT \'comment 3\'\n)\nENGINE = MergeTree\nPARTITION BY second_column\nORDER BY first_column\nSAMPLE BY first_column\nSETTINGS index_granularity = 8192
|
|
first_column UInt8 comment 1
|
|
second_column UInt8 comment 2
|
|
third_column UInt8 comment 3
|
|
┌─table──────────────────────┬─name──────────┬─comment───┐
|
|
│ check_query_comment_column │ first_column │ comment 1 │
|
|
│ check_query_comment_column │ second_column │ comment 2 │
|
|
│ check_query_comment_column │ third_column │ comment 3 │
|
|
└────────────────────────────┴───────────────┴───────────┘
|
|
CREATE TABLE default.check_query_comment_column\n(\n `first_column` UInt8 COMMENT \'comment 1_2\',\n `second_column` UInt8 COMMENT \'comment 2_2\',\n `third_column` UInt8 COMMENT \'comment 3_2\'\n)\nENGINE = MergeTree\nPARTITION BY second_column\nORDER BY first_column\nSAMPLE BY first_column\nSETTINGS index_granularity = 8192
|
|
CREATE TABLE default.check_query_comment_column\n(\n `first_column` UInt8 COMMENT \'comment 1_3\',\n `second_column` UInt8 COMMENT \'comment 2_3\',\n `third_column` UInt8 COMMENT \'comment 3_3\'\n)\nENGINE = MergeTree\nPARTITION BY second_column\nORDER BY first_column\nSAMPLE BY first_column\nSETTINGS index_granularity = 8192
|
|
┌─table──────────────────────┬─name──────────┬─comment─────┐
|
|
│ check_query_comment_column │ first_column │ comment 1_3 │
|
|
│ check_query_comment_column │ second_column │ comment 2_3 │
|
|
│ check_query_comment_column │ third_column │ comment 3_3 │
|
|
└────────────────────────────┴───────────────┴─────────────┘
|