我有类似的查询
Select *
From ReportData L
Left Join ATM A On L.ATMID=A.ATM
Where L.ATMID=A.ATM AND L.IssuerNetwork < > '0000'
ATMID
它仅在&ATM
类似于'TWAW1800 '
&'TWAW1800 '
但失败时'TWAW1800'
&时检索结果'TWAW1800 '
我试过的是
Select *
From ReportData L
Left Join ATM A On L.ATMID=A.ATM
Where LTRIM(RTRIM(L.ATMID))=LTRIM(RTRIM(A.ATM)) AND L.IssuerNetwork < > '0000'
但这对我不起作用..