Get the App
SLTechnology News&Howtos  ›  Development  › 

What is a join query within mysql

Shulou Source: shulou.com Published: 2022-06-03 07:20:24 10月03日 Update

What is a join query in mysql? I believe many inexperienced people don't know what to do about it. Therefore, this paper summarizes the causes and solutions of the problem. Through this article, I hope you can solve this problem.

1. It is divided into implicit join query and display join query, which are distinguished by whether they contain the inner join keyword or not.

2. The data in the master table and slave table can be queried if they meet the connection conditions, but will not be queried if they do not meet the connection conditions.

Example

-- 2.1implicit internal connection method select * from t_category c, t_product p WHERE c.cid = p.CNO;-- query the information of all items under the category of mobile phone numbers and the classification information SELECT * FROM t_product tp INNER JOIN t_category tc ON tp.cno = tc.cid WHERE tc.cname = 'mobile phone numbers' SELECT * from t_category c INNER JOIN t_product p ON c.cid = p.cno after reading the above content, have you mastered what is the method of join query in mysql? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel, thank you for reading!

Tags: Query information content mobile phone digital way method more condition problem classification helpless to this end keyword reason commodity example this skill Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno OPPO Reno Linux Apple MariaDB Huawei