我有两张桌子
表格1: tbl_test1
id | product1 | price1|
---+----------+-------+
1 | A | 200 |
2 | B | 250 |
3 | C | 300 |
Run Code Online (Sandbox Code Playgroud)
表#2: tbl_test2
id | product2 | price2|
---+----------+-------+
40 | P | 200 |
20 | Q | 250 |
Run Code Online (Sandbox Code Playgroud)
我希望得到我给定的格式
id | product1 | price1|id | product2 | price2|
---+----------+-------+---+----------+-------+
1 | A | 200 |50 | P | 200 |
2 | B | 250 |40 | Q | 250 | …Run Code Online (Sandbox Code Playgroud)