如何用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 tblgoselect * from sys.Objectswhere type='u'