ALTER COLUMN
This section applies only to MRS 3.3.0-LTS and MRS 3.3.1-LTS.
Function
This command is used to change the default values of a column.
Syntax
ALTER TABLE tableIdentifier ALTER COLUMN colName SET DEFAULT defaultValue
Parameters
Parameter |
Description |
---|---|
tableIdentifier |
ClickHouse table name |
colName |
Column Name |
defaultValue |
Default value of a column |
Example
alter table h0_1 alter column extl set default 'new_default_value';
Response
You can view query results on the client.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot