sql - 有没有办法通过 SQL 在 Snowflake 中创建一个临时表,而不必每次都编写列?与,插入
问题描述
insert into temp
select code,
case when code = 'S' then 1
when code = 'U' then 0
when code = 'R' then 4
end
from "table" r
临时表错误-如何在雪花中制作临时表而不必注意每一列
解决方案
Create temp table temp as
select code,
case when code = 'S' then 1
when code = 'U' then 0
when code = 'R' then 4
end
from "table" r;
推荐阅读
- ios - 如何在IOS上通过硬件播放解码的音频数据?
- javascript - 如何在 JavaScript 中获取创建的音频元素的文件大小?
- node.js - 使用 Dgraph:在保存之前将操作暴露给前端并处理突变
- reactjs - Reactjs 中的 Unicode 表情符号渲染
- pandas - plot_recursive_coefficient statsmodels 创建子图
- ios - 如何改进 iOS Safari 对 PDF 作为 blob 链接的处理?
- ionic4 - 杀死应用程序 Ionic 5 后位置数据未发送到服务器
- c# - 将缓冲区传递给 SharpDX Direct3D11 中的计算着色器
- entity-framework-core - context.Entry(x).State = EntityState.Modified 与 context.Update(x) 有什么区别?
- javascript - Json - 树数据格式