if not exists( select 1 from dbo.syscolumns s
where name ='yourColumn'
and id = object_id(N'YourTable'))
begin
alter table YourTable add yourColumn ColumnType
end

相关文章:

  • 2022-12-23
  • 2022-01-04
  • 2021-05-24
  • 2022-01-24
  • 2022-12-23
  • 2021-08-21
  • 2021-06-09
  • 2021-11-26
猜你喜欢
  • 2022-02-11
  • 2022-12-23
  • 2021-10-17
  • 2021-08-11
  • 2021-10-24
  • 2021-10-18
  • 2022-12-23
相关资源
相似解决方案