如何在MsSql中找到所选数据库的表名 [英] How can I find tables name of selected database in MsSql

查看:106
本文介绍了如何在MsSql中找到所选数据库的表名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在不使用MsSql的情况下获取特定数据库的表名

I want get tables name of specific Database in MsSql without

using db-name

在mysqlIi这样的东西

something like this in mysqlIi need

select table_name from information_schema.tables where table_schema=db-name

我该怎么做?

推荐答案

我相信这是您要查找的内容的最短版本

I believe this is the shortest version of what your are looking for

select name from [db_name].sys.tables

这篇关于如何在MsSql中找到所选数据库的表名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆