关于子查询 select a1.calldate , a1.src , a1.dst ,a1.billsec
, (select accountNumber from poicomcce.customer b1 where a1.dst like "%"+b1.Phone+"%" ) accountNumber
from asterisk.ast_cdr a1
where src in (2602,2615,2636) limit 200
------其他解决方案-------------------- select a1.calldate , a1.src , a1.dst ,a1.billsec
, (select accountNumber from poicomcce.customer b1 where a1.dst like '%'+b1.Phone+'%' ) accountNumber
from asterisk.ast_cdr a1
where src in (2602,2615,2636) limit 200
单引号的吧。你是MYSQL? ------其他解决方案-------------------- limit mysql ------其他解决方案--------------------