I've tried this a few different ways but every time I get a syntax error when trying to add columns to a table.
I'm new to databases so it's probably something basic that I'm doing wrong, but I just don't see why this isn't working.
Any input would be appreciated.
P.S. at the end of the query line there is a ";"… You just can't see it in the screenshot.
So far I've tried changing "add columns" to "add column" and just "add" followed by the columns. I'm aware I can just use the GUI to copy columns in DBeaver but I'd rather get this SQL working.
Best Answer
According to Postgres docs the correct syntax is:
Have a look at Postgres tutorials on PostgreSQL ADD COLUMN: Add One Or More Columns To a Table.
I've set up a minimal example that reproduces your error:
Using the correct syntax:
db<>fiddle here