我收到以下错误:
Msg 209, Level 16, State 1, Line 3 Ambiguous column name 'NUM_0'.
SELECT BPR_0, BPAPAY_0, BPYNAM_0, BPYADDLIG_0, NUM_0 -- and so on
FROM PROD.SINVOICE, PROD.SINVOICED
WHERE SINVOICE.NUM_0 = SINVOICED.NUM_0
最佳答案
用表 alise
明确限定列名:
select sin.col, . . ., sind.col, . . ., c.col, . . .
from prod.sininvoice sin inner join
prod.sininvoiced sind
on sind.num_0 = sin_num_0 inner join
prod.customer c
on . . .;
关于mysql - 选择操作期间出现不明确的列名错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51484193/