0
我想從表B從匹配柱接合元件顯示後一個的表中的所有行加入
表A
+-----------+----------+------------+
| FirstName | LastName | Date |
+-----------+----------+------------+
| Tia | Carrera | 1975-09-18 |
| Nikki | Taylor | 1972-03-04 |
| Yamila | Diaz | 1970-03-05 |
+-----------+----------+------------+
表B
+-----------+------------+
| code | Date |
+-----------+------------+
| 1234 | 1975-09-18 |
| 56789 | 1972-03-04 |
| 54856 | 1968-07-14 |
+-----------+------------+
後顯示錶A中的所有行
一切我在網上找到的樣子
+-----------+----------+------------+-----------+
| FirstName | LastName | Date | code |
+-----------+----------+------------+-----------+
| Tia | Carrera | 1975-09-18 | 1234 |
| Nikki | Taylor | 1972-03-04 | 56789 |
+-----------+----------+------------+-----------+
但這是結果,我想
+-----------+----------+------------+-----------+
| FirstName | LastName | Date | code |
+-----------+----------+------------+-----------+
| Tia | Carrera | 1975-09-18 | 1234 |
| Nikki | Taylor | 1972-03-04 | 56789 |
| Yamila | Diaz | 1970-03-05 | |
+-----------+----------+------------+-----------+
使用LEFT JOIN而不是INNER JOIN –