简体   繁体   English

如何更新 AWS Athena 表中的列

[英]How to update column in AWS Athena Table

I have a table in Athena with the following columns.我在 Athena 中有一张表,其中包含以下列。

Describe my_table

row_id row_id
icd9_code icd9_code
linksto链接到

The column icd9_code is empty with int data type. icd9_code空,数据类型为int I want to insert some integer values to the column icd9_code of my table named my_table .我想在名为my_table表的icd9_code列中插入一些整数值。

Those integer values are stored in an excel sheet in my local pc.这些整数值存储在我本地电脑的 Excel 表中。 Does AWS athena provide some way to do it. AWS athena 是否提供了一些方法来做到这一点。

Amazon Athena is primarily designed to run SQL queries across data stored in Amazon S3. Amazon Athena 主要用于对存储在 Amazon S3 中的数据运行 SQL 查询。 It is not able to access data stored in Microsoft Excel files, nor is it able to access files stored on your computer.它无法访问存储在 Microsoft Excel 文件中的数据,也无法访问存储在您的计算机上的文件。

To update a particular column of data for existing rows of data, you would need to modify the files in Amazon S3 that contain those rows of data .要更新现有数据行的特定数据列,您需要修改 Amazon S3 中包含这些数据行的文件

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM