如何读取某个数据库有社么表

Edwin2260 2003-04-07 09:04:14
请问如何显示某个数据库的数据库表
...全文
35 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
benxie 2003-04-08
  • 打赏
  • 举报
回复
楼上都可以。我也学习一下。
pengdali 2003-04-07
  • 打赏
  • 举报
回复
exec sp_databases
select * from sysdatabases
pengdali 2003-04-07
  • 打赏
  • 举报
回复
sp_tables
select * from INFORMATION_SCHEMA.TABLES
select * from sysobjects where xtype='U' and status>0
8LY8Apollo 2003-04-07
  • 打赏
  • 举报
回复
select name from 数据库名..sysobjects where type = 'u' union all
select name from 数据库名..sysobjects where type = 'u' union all
select name from 数据库名..sysobjects where type = 'u' union all
select name from 数据库名..sysobjects where type = 'u' ……………………
fengyuyan 2003-04-07
  • 打赏
  • 举报
回复
那如何得到所有的数据库呢
sunsg 2003-04-07
  • 打赏
  • 举报
回复
select name from sysobjects where xtype = 'U'
愉快的登山者 2003-04-07
  • 打赏
  • 举报
回复
select name from sysobjects where xtype = 'u'

22,209

社区成员

发帖
与我相关
我的任务
社区描述
MS-SQL Server 疑难问题
社区管理员
  • 疑难问题社区
  • 尘觉
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧