Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The simplest way to query mysql join tables

2025-04-03 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

Let's learn about the simplest way to query the mysql join table. I believe you will benefit a lot after reading it. The text is not in the essence. I hope the simplest way to query the mysql join table is what you want.

1. Query 4 tables (query several fields of a, b, c, d tables, and then from is equivalent to giving the table name an alias, namely a, b, c, d. Then where is to set some conditions)

Select a.name,a.quota_mailbox,a.quota_netdisk,a.limit_send,a.limit_recv,b.realname,c.dept_id,c.position,d.title from core_mailbox a,co_user b,co_department_member c,co_department d where a.mailbox_id=b.mailbox_id and a.mailbox_id=c.mailbox_id and c.dept_id=d.id

After reading this article on the easiest way to query mysql join tables, many readers will want to know more about it. If you need more industry information, you can follow our industry information section.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 212

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report