在CTE查询中 能够执行以下语句
with
cte1 as(
exec('select iConnID ,cDev1Agent,cAni,tBegin,tEnd,iTotal from dbo.tCallLog' + @sqlwhere)
),
cte2 as
(
select CallID from dbo.t_bespeak
)
select * from cte1 c1 , cte2 c2 where cte1.iConnID = cte2.CallID
可否在其中进行if 的条件判断?
猛跑小猪