如何获得数据库中的表,要表名(在线)

super_cha 2003-06-19 03:47:43
用一个sql语句,或者其他方法获得一个库中的所有表名,怎么做??
...全文
51 8 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
hjb111 2003-06-19
  • 打赏
  • 举报
回复
sp_tables


select name from sysobjects where xtype='U'
97866 2003-06-19
  • 打赏
  • 举报
回复
select name from sysobjects where xtype='U' and Status>0
netcoder 2003-06-19
  • 打赏
  • 举报
回复
select name from sysobjects where type = 'U' and name <> 'dtproperties'
dafu71 2003-06-19
  • 打赏
  • 举报
回复
select Name from sysobjects where xtype='U'
sp_tables
select * from Information_schema.tables
CrazyFor 2003-06-19
  • 打赏
  • 举报
回复
select Name from sysobjects where xtype='U'

or

exec sp_tables
wgy2008 2003-06-19
  • 打赏
  • 举报
回复
select name
from sysobjects
where xtype = 'u'
happydreamer 2003-06-19
  • 打赏
  • 举报
回复

sp_tables


select name from sysobjects where xtype='U'
happydreamer 2003-06-19
  • 打赏
  • 举报
回复

sp_tables


select name from sysobjects where xtype='U'

34,838

社区成员

发帖
与我相关
我的任务
社区描述
MS-SQL Server相关内容讨论专区
社区管理员
  • 基础类社区
  • 二月十六
  • 卖水果的net
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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