English 中文(简体)
JOINS和SUBquestRIES之间有什么区别? 我们能够与加入一起做些什么,也可以与次年或反省做些什么? [复制]
原标题:What is difference between JOINS and SUBQUERIES?Can anything we can do with joins can be done with subqueries also or vice-versa? [duplicate]
This question already has answers here:
Closed 11 years ago.

Possible Duplicate:
SQL: Join vs. subquery

Is there anything that we can do with joins but not with subqueries or vice-versa?

问题回答

在大多数企业申请中,它不仅是一个可做的事,而且还可以做。 一般来说,儒昂比按次年价要快,费用要低。 在SO方面担任其他职务。 http://stackoverflow.com/questions/2577174/sql-join-vs-subquery”

坦率地说,我想到的是,从两种方法(顺序或加入)中可以得出一点。

对我来说,这更多地涉及可读性和业绩。 例如,分局可能较慢,而合并可能会利用某些指数。 至少从房舍管理司的角度来看,我想,在分析这一表述时,应更容易优化加入。

举例来说,考虑几个加入国的情况。 对大多数人来说,如果将发言视为<代码>Left,Rights/code>或Inner加入,便更容易理解和维护。 我甚至避免使用暗中加入,因为它们掩盖了意图。 换言之,我更愿意作为<条码>表示加入,从表格中填入表b, id=b.id vs ,从表a. b.id=b.id.。 海事组织作为分局实施合并,使之更不易读。





相关问题
what is wrong with this mysql code

$db_user="root"; $db_host="localhost"; $db_password="root"; $db_name = "fayer"; $conn = mysqli_connect($db_host,$db_user,$db_password,$db_name) or die ("couldn t connect to server"); // perform query ...

Users asking for denormalized database

I am in the early stages of developing a database-driven system and the largest part of the system revolves around an inheritance type of relationship. There is a parent entity with about 10 columns ...

Easiest way to deal with sample data in Java web apps?

I m writing a Java web app in my free time to learn more about development. I m using the Stripes framework and eventually intend to use hibernate and MySQL For the moment, whilst creating the pages ...

join across databases with nhibernate

I am trying to join two tables that reside in two different databases. Every time, I try to join I get the following error: An association from the table xxx refers to an unmapped class. If the ...

How can I know if such value exists in database? (ADO.NET)

For example, I have a table, and there is a column named Tags . I want to know if value programming exists in this column. How can I do this in ADO.NET? I did this: OleDbCommand cmd = new ...

Convert date to string upon saving a doctrine record

I m trying to migrate one of my PHP projects to Doctrine. I ve never used it before so there are a few things I don t understand. In my current code, I have a class similar to this: class ...

热门标签