SQL SERVER

查看所有表名:
select name from sysobjects where type='U'   //显示类型为用户的所有表名

查询表的所有字段名:
Select name from syscolumns Where ID=OBJECT_ID('表名')   //显示'表名'里所有的字段名

select * from information_schema.tables
select * from information_schema.views
select * from information_schema.columns

相关文章:

  • 2021-11-17
  • 2022-12-23
  • 2022-01-14
  • 2022-12-23
  • 2021-07-03
  • 2021-06-04
猜你喜欢
  • 2021-07-23
  • 2021-07-24
  • 2022-12-23
  • 2021-11-26
  • 2021-06-12
  • 2022-12-23
  • 2022-02-07
相关资源
相似解决方案