0
可能重複不止一個結果:
why can’t I access my CTE after I used it once?SQL中使用使用WITH子句
我怎樣才能獲得比使用一個結果嗎?
;WITH X AS
(SELECT whatever)
, Y AS
(SELECT whatever FROM X)
SELECT * FROM Y WHERE condition
SELECT Count(*) FROM X <==== X doesn't work here
我不想@@總記錄,這種計算Ÿ,不X