我有一个像Vertica的 - 解决了使用与INSERT语句
with subtable as (
................
)
select *
from subtable
一个SQL查询我想从SELECT语句中的记录插入到表中。寻找类似于:
with subtable as (......)
insert into newtable
select *
from subtable
但是,在Vertica中,INSERT不能与WITH(CTE)语句一起使用。
有没有解决这个问题的方法?
感谢您的帮助
您可以改为使用视图。 –
为什么要在'只能插入新表(...
标记正确的答案! @woot - 交付! –