På fredag 12. januar 2018 kl. 14:45:07, skrev Geoff Winkless <
pgsqlad...@geoff.dj <mailto:pgsqlad...@geoff.dj>>:
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
andr...@visena.com <mailto:andr...@visena.com>
www.visena.com <https://www.visena.com>
 <https://www.visena.com>


 

Reply via email to