1.4 KiB
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
- 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