Search Postgresql Archives

Sv: ADD OR ALTER column

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



På fredag 12. januar 2018 kl. 14:45:07, skrev Geoff Winkless <pgsqladmin@xxxxxxxx>:
I'm probably missing something, but can anyone see a reason why adding an ADD OR ALTER COLUMN syntax to the ALTER TABLE command isn't either a) achievable or b) desirable?
 
It seems to me to be eminently useful and not overly difficult, while potentially saving a significant amount of effort on the part of users.
 
Geoff
 
What about using
ALTER TABLE tab ADD COLUMN IF NOT EXISTS mycol mytype;
 
I don't think there's an ALTER COLUMN IF EXISTS tho...
 
--
Andreas Joseph Krogh
CTO / Partner - Visena AS
Mobile: +47 909 56 963
andreas@xxxxxxxxxx
www.visena.com
 

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]

  Powered by Linux