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년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인