MSSQL - Add column only if it doesn't exist

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

this thing is adding a constraint to the table so when you try to drop the column with this "alter table tableName drop column columnName" it will throw an error "cannot drop column because its dependent on some other thing" then you will have to drop the constraint and then drop the column

fired_developer