如何列出SQL数据库中的所有表 [英] how to list all tables from sql database
本文介绍了如何列出SQL数据库中的所有表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好
我正在制作一个实用程序,用于从选定的数据库上传数据并在另一个数据库中还原
现在的问题是,我无法获取所选数据库中所有表的列表.
是一种方法.
hi all
i am making a utility for upload data from a selected database and restore in another database
now problem is that i m not able to get the list of all tables in a selected database
解决方案
SELECT name as Table_names FROM sysobjects WHERE type = ''U'';
is one way.
这篇关于如何列出SQL数据库中的所有表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文