Skip to content

Commit

Permalink
Update 90-alter-table-column.md
Browse files Browse the repository at this point in the history
  • Loading branch information
BohuTANG authored Mar 17, 2024
1 parent 34d82ae commit ef7d4c3
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ sidebar_position: 4
---
import FunctionDescription from '@site/src/components/FunctionDescription';

<FunctionDescription description="Introduced or updated: v1.2.327"/>
<FunctionDescription description="Introduced or updated: v1.2.379"/>

import EEFeature from '@site/src/components/EEFeature';

Expand Down Expand Up @@ -37,7 +37,7 @@ RENAME [ COLUMN ] <column_name> TO <new_column_name>

-- Change the data type of one or multiple columns
ALTER TABLE [ IF EXISTS ] [ <database_name>. ]<table_name>
MODIFY [ COLUMN ] <column_name> <new_data_type> [ DEFAULT <constant_value> ][, COLUMN <column_name> <new_data_type> [ DEFAULT <constant_value> ], ... ]
MODIFY [ COLUMN ] <column_name> <new_data_type> [ DEFAULT <constant_value> ][, [COLUMN] <column_name> <new_data_type> [ DEFAULT <constant_value> ], ... ]

-- Set / Unset masking policy for a column
ALTER TABLE [ IF EXISTS ] [ <database_name>. ]<table_name>
Expand Down Expand Up @@ -266,4 +266,4 @@ id|email |
--+---------+
2|*********|
1|*********|
```
```

0 comments on commit ef7d4c3

Please sign in to comment.