When joining two tables, I'm not sure how to join the following tables in what I wanted.
Table a:
--------------------------------------
| id | name | buy time | total |
--------------------------------------
| 1 | A | 3 | 30 |
--------------------------------------
| 2 | B | 1 | 10 |
--------------------------------------
Table B:
-------------------------------
| id | orderid | price |
-------------------------------
| 1 | 1 | 10 |
-------------------------------
| 1 | 2 | 10 |
-------------------------------
| 1 | 3 | 10 |
-------------------------------
| 2 | 4 | 10 |
-------------------------------
Join table C
-------------------------------------------------- -------
| id | name | buy time | total | orderid | price |
-------------------------------------------------- -------
| 1 | A | 3 | 30 | | |
---------------------------------------------------------
| 1 | | | | 1 | 10 |
---------------------------------------------------------
| 1 | | | | 2 | 10 |
---------------------------------------------------------
| 1 | | | | 3 | 10 |
---------------------------------------------------------
| 2 | B | 1 | 10 | | |
---------------------------------------------------------
| 2 | | | | 4 | 10 |
---------------------------------------------------------
"Left OUT JOIN A.id = B.id"
, .
" 0 B", 0, , .
, ?