Files
doris/docs/en/sql-manual/sql-reference/Data-Definition-Statements/Alter/ALTER-TABLE-REPLACE.md
wudi 8932fcaf59 [Doc] fix doc link suffix .html to .md (#9442)
* fix doc link suffix html to md
2022-05-09 09:16:06 +08:00

1.4 KiB

title, language
title language
ALTER-TABLE-REPLACE en

ALTER-TABLE-REPLACE

Name

ALTER TABLE REPLACE

Description

This statement is used to modify the attributes of the schema of the existing table. The syntax is basically similar to ALTER TABLE CULUMN.

ALTER TABLE [database.]table MODIFY NEW_COLUMN_INFO REPLACE OLD_COLUMN_INFO ;

Example

  1. Modify the maximum length of the val1 column of base index. The original val1 is (val1 VARCHAR(32) REPLACE DEFAULT "abc")
ALTER TABLE example_db.my_table
MODIFY COLUMN val1 VARCHAR(64) REPLACE DEFAULT "abc";

Keywords

ALTER, TABLE, REPLACE

Best Practice