sql server 2000如何查看这个数据库有多少张表并具体显示出来

2024-12-22 10:32:26
推荐回答(2个)
回答1:

select name from dbo.sysobjects where OBJECTPROPERTY(id, N'IsUserTable') = 1 显示表名

select count(name) from dbo.sysobjects where OBJECTPROPERTY(id, N'IsUserTable') = 1 显示 表数量

回答2:

select * from sysobjects
where xtype = 'u'