ClickHouse使用之六 ——指定排序id

CREATE TABLE web3.tx_hashes
(

    `id` UInt64,

    `created_at` Nullable(DateTime),

    `updated_at` Nullable(DateTime),

    `deleted_at` Nullable(DateTime),

    `game_name` Nullable(String),

    `chain_id` Nullable(Int16),

    `tx_hash` Nullable(String),

    `block_number` Nullable(Int64),

    `sender` Nullable(String),

    `Address` Nullable(String),

    `tx_type` Nullable(String)
)
ENGINE = MergeTree
ORDER BY id
SETTINGS index_granularity = 8192;

order by id指定通過id排序來創建表格

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章