所有的庫名
select [name] from master.dbo.sysdatabases where dbid>6

當前庫下的所有表名
use hischeck
select[name]from sysobjects  where  xtype='U'

當前表下的所有字段名
select column_name from information_schema.columns  where   table_name='hcempno'
select column_name from   information_schema.columns   where   table_name='hcempno'   
select [name] from   syscolumns   where   id   =   object_id('hcempno') 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-02-04
  • 2022-02-07
  • 2021-06-12
  • 2021-07-12
猜你喜欢
  • 2022-12-23
  • 2021-10-31
  • 2022-12-23
  • 2022-02-07
  • 2022-12-23
  • 2021-12-07
相关资源
相似解决方案