Postgresql Altering Table

Posted by Jahn on Stack Overflow See other posts from Stack Overflow or by Jahn
Published on 2010-05-25T17:38:17Z Indexed on 2010/05/25 17:41 UTC
Read the original article Hit count: 287

Filed under:
|

Is it possible to alter a table to add a new column and make that column a foreign key to another table in a single command in Postgresql? "alter table x add column y id references z(id)" doesn't seem to work as I had hoped.

© Stack Overflow or respective owner

Related posts about sql

Related posts about postgresql