日期:2014-05-17  浏览次数:20666 次

如何用sql数据查询一个数据库里面所有表名
如何用sql语句,查询一个数据库student,里面所有表名
就是一个数据库里有多少张表,用什么sql语句可以查询啊?表名是分别是什么也要查询到

------解决方案--------------------
select * from sys.objects
where type='U'
------解决方案--------------------
use student
go 

select * from sys.objects
where type='U'
------解决方案--------------------
select * from sys.tables
------解决方案--------------------
SQL code

USE tbl
go
select * from sys.Objects
where type='u'