日期:2014-05-17  浏览次数:20363 次

关联两表的结果集
有这样2个表:
table1
A B
t001 |t01|392|j3|840|t02|356
t002 |408|392
t003 |408|j3|840
t004 |t01|158|408

table2
A B
158 Taiwan
356 India
392 Japan
408 South Korea
840 United States
j3 Europe
t01 South East Asia
t02 Middle East

如何关联后显示成:
t002 |South Korea|Japan
t003 |South Korea|Europe|United States





------解决方案--------------------
拆分,关联再合并。
------解决方案--------------------
这个你直接用union 关联就行了啊