我有2臺首先是使用加入2分表用不同的名稱內加入
以前
lotname
--------
R16A
R17A
R17B
R18A
R18B
第二是
後
lotname
--------
R16AA
R17A
R17B
R18AAA
R18B
我想加入雙方Ë表讓一切都符合像R16A
應R16AA
匹配,如果我寫這樣的代碼
select * from before
join after
on before.lotname = after.lotname
O/P
lotname lotname
R17A R17A
R17B R17B
R18B R18B
我想O/P像
Lotname Lotname
----------------------------
R16A R16AA
R17A R17A
R17B R17B
R18A R18AAA
R18B R18B
蒂姆其驚人的非常感謝你。 –