求SQL语句:得到当前数据库的各个表名

rory1982 2003-10-31 05:32:20
得到表的字段名可以用col_name()函数
那么得到数据库的表名用什么语句呢

望知道的朋友告之一下
谢谢
...全文
78 10 打赏 收藏 转发到动态 举报
写回复
用AI写文章
10 条回复
切换为时间正序
请发表友善的回复…
发表回复
njz168 2003-10-31
  • 打赏
  • 举报
回复
txlicenhe(马可) 说得对的,在SYBASE里面差不多。
realgz 2003-10-31
  • 打赏
  • 举报
回复
sysobject 记录数据库对象 xtype 'U'表示始用户表
其他得看oblinehelp 输入sysobjects 就出来帮助了。。
rory1982 2003-10-31
  • 打赏
  • 举报
回复
select * from sysobjects where xtype='U' and status >0

这句是对了
能帮我解释一下吗?
谢谢
zjcxc 元老 2003-10-31
  • 打赏
  • 举报
回复
select name from sysobjects where xtype='U' and status>0
yoki 2003-10-31
  • 打赏
  • 举报
回复
select * from sysobjects where xtype='U' and status>0
lynx1111 2003-10-31
  • 打赏
  • 举报
回复
sp_tables

select * from INFORMATION_SCHEMA.TABLES

select * from sysobjects where xtype='U' and status>0
察看标的大小、行数、索引大小
sp_spaceused 'test'
wuhjsxn 2003-10-31
  • 打赏
  • 举报
回复
sp_tables
go
给分!
pengdali 2003-10-31
  • 打赏
  • 举报
回复
sp_tables
select * from INFORMATION_SCHEMA.TABLES
select * from sysobjects where xtype='U' and status>0
cloudchen 2003-10-31
  • 打赏
  • 举报
回复
sp_help
txlicenhe 2003-10-31
  • 打赏
  • 举报
回复
Select * from sysobjects where xtype = 'U'

34,874

社区成员

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

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