问题很简单.如何将列添加x到表中y,但仅当x列不存在时?我在这里找到了解决方法,如何检查列是否存在.
x
y
SELECT column_name FROM information_schema.columns WHERE table_name='x' and column_name='y';
postgresql postgresql-9.1
postgresql ×1
postgresql-9.1 ×1