查詢:SQLEXCEPTION(0x80131904):所有的查詢使用UNION合併相交
USE [IEC]
GO
ALTER VIEW [dbo].[V_AllOA]
AS
SELECT ROW_NUMBER() OVER (ORDER BY OrderId) OAId,
*
FROM (
SELECT *
FROM BranchOrder
WHERE Flag IN (1, 2)
UNION
SELECT *
FROM BranchOrder12_13
WHERE flag IN (1, 2)
UNION
SELECT *
FROM BranchOrder11_12
WHERE flag IN (1, 2)
) a
GO
嗨,歡迎光臨。你有什麼問題?並且請顯示代碼。 – Stefan
錯誤消息告訴您究竟要查找什麼。 –
告訴我如何解決這個 –