------------获取表或视图的结构信息(ObjName:表名或视图名)
Select o.name as Oname,c.name As name , t.name As type,c.Length As tlength From SysObjects As o , SysColumns As c , SysTypes As t 
Where o.type in ('u','v') And o.id = c.id And c.xtype = t.xtype and o.name=N'ObjName' 
Order By o.name , c.name , t.name , c.Length

相关文章:

  • 2021-05-21
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-08
  • 2021-06-30
  • 2022-12-23
  • 2021-08-30
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-12-25
  • 2022-02-07
  • 2021-10-15
  • 2021-11-16
  • 2022-12-23
相关资源
相似解决方案