select *
from suMain
where trackingMonth = '2018-07'
and shopID = '421'
and productName like '%a'
and productName like '%x'
order by productName
此查询不适用于我。有人可以帮忙吗?
答案 0 :(得分:0)
尝试以下操作:
select *
from suMain
where trackingMonth = '2018-07'
and shopID = '421'
and (productName like '%a'
or productName like '%x')
order by productName
让我知道它是否对您有用。