任何人都可以解釋爲什麼查詢:選擇與加盟輸出不準確匹配[MySQL的]
select rma.id, history_transactions.reference
from history_transactions
join rma on history_transactions.reference = rma.id
返回:
id | reference
100144 | 100144
102299 | 102299a
100316 | 100316AFEN1
不能讓它只顯示100%匹配,所以只有第一行。如果有人能解釋它爲什麼會發生,那就太好了。
感謝解釋,投(rma.id作爲字符)做的工作! – arti