alter table add multiple columns postgresql
ALTER TABLE customer
ADD COLUMN fax VARCHAR,
ADD COLUMN email VARCHAR;
alter table add multiple columns postgresql
ALTER TABLE customer
ADD COLUMN fax VARCHAR,
ADD COLUMN email VARCHAR;
PostgreSQL add column
ALTER TABLE mytable
ADD COLUMN column1 VARCHAR,
ADD COLUMN column2 REAL;
INSERT INTO mytable (column1)
VALUES (v1), (v2), (vn);
postgres add column at position
ALTER TABLE ADD COLUMN will only add the new column at the end, as the last one.
In order to create a new column in another position you need to recreate the
table and copy the data from the old/current table in this new table.
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us