--读取库中的所有表名 
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-28
  • 2022-02-04
  • 2022-12-23
  • 2022-12-23
  • 2021-11-26
  • 2022-12-23
  • 2022-02-08
  • 2022-12-23
猜你喜欢
  • 2021-07-23
  • 2022-12-23
  • 2022-01-04
  • 2022-12-23
  • 2021-10-05
  • 2022-12-23
  • 2021-07-01
相关资源
相似解决方案