teradata - 在 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 插入表中?
解决方案
推荐阅读
- r - R SQLDF 两个时间戳之间的天数差异?
- python - 如何在 django 中从父模型访问子模型数据
- android-studio - 我如何将颤振项目迁移到 androidx:任务“:app:preDebugBuild”的执行失败。> Android 依赖 'androidx.versionedparcelable
- javascript - 是否可以将此代码缩短为一行?
- java - 将选项卡作为注释参数传递:“属性值必须是常量”
- python - 通过 Python 在 q-lang 查询中转义字符
- mysql - 如何处理时区差异
- python-requests - 应要求使用证书时如何解决以下错误?
- java - 如何在java中使用匿名类中的方法
- android - Firebase 存储:UploadTask:找不到要上传的文件