我現在用的是2個以下MySQL表:mysql的連接查詢
樣品tbl_customers數據集
+----+--------+---------------+----------+------------+--------+------------+
| id | name | email | phone | product_id | year | dnt |
+----+--------+---------------+----------+------------+--------+------------+
| 2 | tester | [email protected] | 12345678 | 75 | 2010 | 2011/01/01 |
+----+--------+---------------+----------+------------+---------------------+
樣品tbl_products數據集
+----+----------------+---------------+--------------+
| id | name | cost | dnt |
+----+----------------+------------------------------+
| 75 | product1 | 500 | 2011/01/01 |
+----+----------------+---------------+--------------+
想加入這兩個表。
謝謝!
從表名添加 – seoppc 2011-04-01 10:40:21