[英]How to rename a column in AWS Athena output csv?
我想替换 Athena 查询的 output 中的列名。 我无法更改数据库中的名称。 可以直接重命名吗?
case when kpi in ('Brand Searches') then replace('Total Searches','Brand Searches') end
这是 output:
KPI _col7
Brand Searches Total Searches
创建了一个新列,我只想重命名该列。 有没有简单的出路?
谢谢你。
您可以将列别名为您选择的名称:
select count(*) as "number of counts" from...
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.