关于查询查询SQL SERVER中所有表的问题

marine8086 2005-09-26 09:44:59
使用
select * from sysobjects where type='u'

但是返回的有些表,实际上不是由用户创建的,是系统自动生成的,比如dtproperties.

这种情况下怎么办?

能不能只返回由用户创建的表。???
...全文
76 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
churchatp1 2005-09-26
  • 打赏
  • 举报
回复
select * from sysobjects where type='u' and status>0
vivianfdlpw 2005-09-26
  • 打赏
  • 举报
回复
select * from sysobjects where xtype='u' and name<>'dtproperties'
wgsasd311 2005-09-26
  • 打赏
  • 举报
回复
select * from sysobjects where type='u' and status>0

34,587

社区成员

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

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