查询以列出数据库中的所有表 [英] Query to list all the tables in a database
本文介绍了查询以列出数据库中的所有表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在SQL Server数据库中显示所有表的查询是什么?
What is the query to display all the tables in a database of sql server?
推荐答案
使用此命令
Hi ,
Use this command
select * from sys.tables
select * from sys.objects where type = ''U''
尝试
SELECT * FROM information_schema.tables
这篇关于查询以列出数据库中的所有表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文