OLE DB is a strategic, low-level application interface for Microsoft that leads to different data sources. OLE DB includes not only the Structured Query Language (SQL) capability of the Microsoft-funded standard data Interface Open Database
1 Syntax: $ this-db-join (table2, table2.col1table1. col2, join type) The third parameter is an optional parameter, which has the following values: left, right, outer, inner, left, outer, leftouter, and rightouter2: to use multiple connections in a
(1) The data query summary fetchRow () method returns a row. whether to return the relevant array or use setFetchMode () to determine whether fetchCol () to return the first fetchOne () to return the first row, the first column. Returns the relevant
When two tables are joined, if the data row in table 1 appears in the result set and needs to be judged by at least one matching row of data appearing in table 2, in this case, a semi join occurs, and the inverse join is a partially joined
Laravel
$houses = DB::table('houses')->join('status', 'houses.status_id', '=', 'status.id')->get()
housesTable has a status_id field, corresponding to the need to query to the status table name field;
What $houses gets inside is the status field in
Transfer from http://www.phpddt.com/db/inner_join-outer-join.htmlThe difference between inner join, outer join, and Cross join in SQL many people do not know, I also ask, just look for information to look at, with their previous understanding, if
The efficiency of Multi-table join queries has been a topic discussed by our developers. I will share some of my tests when using multi-table queries with you, I hope to help you all.
I encountered A problem when I was working on the website
This article mainly introduces the examples of using the Db-type select querytojoin linked list in the zf framework. For more information, see the examples of using the join () linked list in the zend Framework.
The code is as follows:
//
Reprint Address: http://www.phpddt.com/db/inner_join-outer-join.html respect for the work of others is to respect their own achievements!The difference between inner join, outer join, and Cross join in SQL many people do not know, I also ask, just
This article mainly introduces data related to join and joinwith multi-table join queries in Yii2. it is very good and has reference value. if you need it, you can refer to the table structure below.
Currently, there are customer tables, order
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.