在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 的條件判斷?
添加回答
舉報
0/150
提交
取消