首页 > 解决方案 > 在 teradata 中,您可以将 cte 插入表中吗?

问题描述

我查看了其他帖子,但我还没有看到解决方案。

CREATE TABLE newtable AS (SELECT * FROM yourtable) with no data ;

然后

with cte as (
select top 10* from yourtable
)
insert into newtable

select * from cte

select * from newtable

我收到一条错误expects a select and not an insert.
消息我将如何完成将 cte 插入表中?

标签: teradatateradatasql

解决方案


推荐阅读