select count(1) from syscolumns where id = object_id('tbname')
或者
select * from syscolumns where id = object_id('tbname')
或
SELECT MAX(colid) FROM syscolumns WHERE id=OBJECT_ID('table')

 

相关文章:

  • 2022-12-23
  • 2021-12-15
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-02
  • 2022-12-23
  • 2022-02-07
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-26
  • 2022-12-23
相关资源
相似解决方案