1、select 1 from syscolumns where id=object_id('表名') and name='列名'

2、if col_length('表名', '列名') is not null
  print '存在'

相关文章:

  • 2021-07-30
  • 2021-10-10
  • 2021-11-17
  • 2021-10-08
猜你喜欢
  • 2021-07-25
  • 2022-03-01
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-21
相关资源
相似解决方案