View Code
1 select syscolumns.name AS ColumnName,systypes.name AS TypeName,syscolumns.length as length
2   from syscolumns,sysobjects,systypes where syscolumns.id=sysobjects.id and syscolumns.xtype= systypes.xtype and sysobjects.name= '表名' order by syscolumns.colid

 

 

1 select * from sys.all_columns where object_id=(select id from sysobjects where name='表名')

 

 

 

SELECT Name FROM DatabaseName..SysObjects Where XType='U' ORDER BY Name

 

相关文章:

  • 2021-05-11
  • 2022-12-23
  • 2021-06-18
  • 2022-02-07
  • 2022-02-04
  • 2021-09-30
猜你喜欢
  • 2021-07-11
  • 2021-05-15
  • 2021-12-02
  • 2021-11-24
  • 2021-09-19
相关资源
相似解决方案