4

我有一个简单的 CTE x,我希望将其内容选择到视图中。您可以使用与表格相同的语法类型选择视图吗?IE

SELECT * 
INTO newTable
FROM OldTable

可以像这样动态创建新视图吗?

4

1 回答 1

6
create view myView
AS
with x
as
(select 1 as num)
select * from x
于 2012-11-05T19:17:28.543 回答