How to add multiple columns in AWS redshift with alter table query
Asked Answered
T

2

13

Is it possible to add multiple columns in a single Alter query in Redshift

Alter table employee add column Name, add column Age, add column Salary

Taenia answered 1/4, 2021 at 5:40 Comment(0)
B
30

According to Redshift Documentation, You can add only one column in each ALTER TABLE statement. Only way to add multiple columns is executing multiple ALTER TABLE statements.

Bara answered 1/4, 2021 at 11:27 Comment(2)
....................🤦Naji
This is another in a long list of things that makes me loathe working with AWS. The pain this service causes me, coupled with its ubiquity, is one of the biggest mysteries I've ever encountered.Sparling
B
0

We have to use multiple ALTER TABLE statements.

Biparous answered 9/3, 2023 at 8:34 Comment(1)
What does this add to the other answer, posted nearly a year ago?Ghassan

© 2022 - 2024 — McMap. All rights reserved.