Change column name in a table in clickhouse
Change the name of one column:
ALTER TABLE tablename RENAME COLUMN old_name TO new_name
Change the names of multiple columns:
ALTER TABLE tablename
RENAME COLUMN old_name1 TO new_name1,
RENAME COLUMN old_name2 TO new_name2
Comments
Post a Comment