Athena - Execute multiple query and capture output in a file on e2

0

Please help me on how to execute multiple query and capture the output in a file on e2

Tried with :

aws athena start-query-execution --query-string "<select query>" > query_output.sql

But above statement is giving only key in the file query_output.sql but I want the output to be capture in a file, please help

已提問 2 年前檢視次數 645 次
1 個回答
0

Hi,

If I understand correctly you would like to be able to save the result set,

the start-query-execution, will only return the query ID, you can use the query ID to check the status of a query (QUEUED,RUNNING, FAILED, SUCCEEDED) and retrieving the query result sets with different commands:

get-query-execution

get-query-results

hope this helps,

AWS
專家
已回答 2 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南