如何在下面的查询中查找表名. [英] How to find out table names in below query.

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

问题描述

你好,

如何在下面的查询中识别表名.

hello,

How to identify table names in below query.

select c.cid,c1.cname from tablename1 c inner join tablename2 c1 on c.cid=c1.cid




tablename1:-第一个表

tablename2:-第二个表,这两个是表名,但是如何识别.


谢谢




tablename1 :-- first table

tablename2:-- second table, these two are table names, but how to identify.


thanks

推荐答案

所以没有看到该查询,我怎么能找到该查询中使用的表呢?

你不能查询可以从具有多个联接和子查询的任意数量的表中返回结果,也可以从包含多个表或视图中的数据的视图中返回结果.

如果您有权访问数据库服务器上的SQL Profiler,则可以跟踪.
"So with out seeing that query how could i find out the tables of used in that query"

You can''t. A query could return results from any number of tables with multiple joins and subqueries or it could return results from a view which is comprised of data from multiple table or views.

If you had access to SQL Profiler on the database server you could follow the trace.


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

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