- MySQL 8 for Big Data
- Shabbir Challawala Jaydip Lakhatariya Chintan Mehta Kandarp Patel
- 78字
- 2021-08-20 10:06:14
LEFT JOIN
LEFT JOIN retrieves all the records from the left table while only matching records from the right table. If we use the customer and order table example with left join, it will fetch all records from the order table even if there are no matches in the right table (customer). To fetch all order details for the customer, the following query can be used:
SELECT order.order_id, customer.name
FROM order
LEFT JOIN customer ON order.customer_id = customer.customer_id;
推薦閱讀
- Designing Machine Learning Systems with Python
- Mastering phpMyAdmin 3.4 for Effective MySQL Management
- Python高效開發實戰:Django、Tornado、Flask、Twisted(第2版)
- C語言程序設計案例精粹
- Getting Started with Laravel 4
- Android驅動開發權威指南
- Swift 4從零到精通iOS開發
- 計算機應用基礎教程(Windows 7+Office 2010)
- Cocos2d-x by Example:Beginner's Guide(Second Edition)
- Python數據可視化之美:專業圖表繪制指南(全彩)
- Java7程序設計入門經典
- Secret Recipes of the Python Ninja
- Getting Started with RethinkDB
- Magento 2 Developer's Guide
- LabVIEW數據采集(第2版)