1、查询表结构

--查询表结构(字段名、字段类型、字段长度、能否为空)
SELECT syscolumns.name,systypes.name, syscolumns.length ,syscolumns.isnullable 
FROM syscolumns, systypes  
WHERE syscolumns.xusertype = systypes.xusertype  AND syscolumns.id = object_id('表名')

 

相关文章:

  • 2022-12-23
  • 2022-01-03
  • 2021-04-12
  • 2021-06-27
  • 2021-07-22
  • 2022-01-22
猜你喜欢
  • 2022-12-23
  • 2022-01-14
相关资源
相似解决方案