为什么这个查询
;WITH CTE AS
(
SELECT
T_Installation.IS_UID
,T_Installation.IS_No_Intern
,T_Installation.IS_No_Intern
FROM T_Installation
WHERE IS_IS_UID IS NULL
UNION ALL
SELECT
T_Installation.IS_UID
,T_Installation.IS_No_Intern
,T_Installation.IS_No_Intern
FROM CTE
INNER JOIN T_Installation
ON T_Installation.IS_IS_UID = CTE.IS_UID
)
SELECT * FROM CTE
-- ORDER BY IS_No_Intern
无异常运行(在我的机器上),
这个查询
;WITH CTE AS (
SELECT
T_Installation.IS_UID
,T_Installation.IS_No_Intern
,T_Installation.IS_No_Intern
FROM T_Installation
WHERE IS_IS_UID IS NULL
)
SELECT * FROM CTE
引发
错误8156
为IS_No_Intern列指定了多次 [任何]。
(在我的机器上)
在ano 其他sql-server上,相同的服务器版本, 两个 变种都会引发错误......