我想替換 Athena 查詢輸出中的列名。我無法更改資料庫中的名稱。可以直接改名嗎?
case when kpi in ('Brand Searches') then replace('Total Searches','Brand Searches') end
這是輸出:
KPI _col7
Brand Searches Total Searches
創建了一個新列,我只想重命名該列。有沒有簡單的出路?
謝謝你。
uj5u.com熱心網友回復:
您可以將列別名為您選擇的名稱:
select count(*) as "number of counts" from ...
轉載請註明出處,本文鏈接:https://www.uj5u.com/qiye/449527.html
