如何用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'