--读取库中的所有表名

Select [name] from sysobjects where xtype = 'u'

--读取指定表的所有列名

Select [name] from syscolumns
where id = (Select MAX(id) from sysobjects where xtype = 'u' and [name] = '表名')

相关文章:

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