就业数据资源平台
当前位置:首页 > 数据库技术
查询数据库中所有用户表或表的个数

  查询数据库db1中所有的用户表
  use db1
  go
  selectfrom sysobjects where type = ’U’
  系统表的个数
  select count from sysobjects where type = ’S’
  存储过程:type = ’P’
  视图: type = ’V’
就业数据资源平台