復制代碼 代碼如下:
WITH fw_requestion_note_temp(old_apply_id) AS (
SELECT old_apply_id FROM fw_requestion_note
UNION ALL SELECT fw
INNER JOIN fw_requestion_note_temp temp ON fw
From:http://tw.wingwit.com/Article/program/SQLServer/201405/30733.html
復制代碼 代碼如下:
WITH fw_requestion_note_temp(old_apply_id) AS (
SELECT old_apply_id FROM fw_requestion_note
UNION ALL SELECT fw
INNER JOIN fw_requestion_note_temp temp ON fw