創建視圖我想創建一個case語句裏面的觀點,但是SQL Server不允許它。這裏舉一個例子:SQL服務器:中箱
SELECT value,
CASE value
WHEN 'value1' THEN (Create View as (Select ... From ... Where...))
WHEN 'value1' THEN (Create View as (Select ... From ... Where...))
END
FROM table
WHERE table.parameter = 'some_parameter'
有沒有人知道它爲什麼不起作用?提前致謝。
標籤DBMS產品。 (Msql ???) – jarlh
@jarlh msql server – bpesunny
您的意思是MS SQL Server? – jarlh