有没有这种语句?
28 个解决方案
#1
use test--數據庫名
go
select * from sysobjects where xtype='U'
#2
SELECT NAME,* FROM SYSOBJECTS WHERE XTYPE='U'
#4
http://blog.csdn.net/Internetroot/archive/2007/11/07/1871704.aspx
http://blog.csdn.net/Internetroot/archive/2007/11/07/1871704.aspx
#5
select * from sys.objects where xtype ='U'
#6
应该是1楼那样的吧sys.objects中间没有"."
#7
select * from sysobjects where xtype='U'
#8
SQL2005:
select name From sys.tables
select name From sys.tables
#9
#10
#11
select * from sysobjects where type='U'
#12
select * from sysobjects
#13
select * from sysobjects where xtype='U'
#14
select * from sysobjects where xtype='U'
#15
#16
select * from sysobjects where xtype = 'u'
#17
select * from sys.objects where
type ='U'
#18
select * from sysobjects where xtype='U'
#19
select * from sys.objects where xtype ='U'
#20
select * from sysobjects where type='U'
#21
select name from sysobjects where type='U'
#22
select * from sysobjects where xtype='U'
#23
select * from sysobjects where xtype='U'
#24
--用这个也是可以的,但不如前面大多数人提到的简单:sp_tables @table_type ='''TABLE'''
--只取表名
create table #a(a varchar(50),b varchar(50),c varchar(100),d varchar(50),e varchar(50))
insert #A exec sp_tables @table_type ='''TABLE'''
select c name from #a
--只取表名
create table #a(a varchar(50),b varchar(50),c varchar(100),d varchar(50),e varchar(50))
insert #A exec sp_tables @table_type ='''TABLE'''
select c name from #a
#25
select * from sysobjects where xtype='U'
#26
select * from sysobjects where xtype='U'
#27
不错……………………回帖,加分
#28
select * from sysobjects where xtype='U'为什么说找不到database?菜鸟了
#1
use test--數據庫名
go
select * from sysobjects where xtype='U'
#2
SELECT NAME,* FROM SYSOBJECTS WHERE XTYPE='U'
#3
#4
http://blog.csdn.net/Internetroot/archive/2007/11/07/1871704.aspx
http://blog.csdn.net/Internetroot/archive/2007/11/07/1871704.aspx
#5
select * from sys.objects where xtype ='U'
#6
应该是1楼那样的吧sys.objects中间没有"."
#7
select * from sysobjects where xtype='U'
#8
SQL2005:
select name From sys.tables
select name From sys.tables
#9
#10
#11
select * from sysobjects where type='U'
#12
select * from sysobjects
#13
select * from sysobjects where xtype='U'
#14
select * from sysobjects where xtype='U'
#15
#16
select * from sysobjects where xtype = 'u'
#17
select * from sys.objects where
type ='U'
#18
select * from sysobjects where xtype='U'
#19
select * from sys.objects where xtype ='U'
#20
select * from sysobjects where type='U'
#21
select name from sysobjects where type='U'
#22
select * from sysobjects where xtype='U'
#23
select * from sysobjects where xtype='U'
#24
--用这个也是可以的,但不如前面大多数人提到的简单:sp_tables @table_type ='''TABLE'''
--只取表名
create table #a(a varchar(50),b varchar(50),c varchar(100),d varchar(50),e varchar(50))
insert #A exec sp_tables @table_type ='''TABLE'''
select c name from #a
--只取表名
create table #a(a varchar(50),b varchar(50),c varchar(100),d varchar(50),e varchar(50))
insert #A exec sp_tables @table_type ='''TABLE'''
select c name from #a
#25
select * from sysobjects where xtype='U'
#26
select * from sysobjects where xtype='U'
#27
不错……………………回帖,加分
#28
select * from sysobjects where xtype='U'为什么说找不到database?菜鸟了