简体   繁体   English

如何在Amazon Athena中创建多个表

[英]How to create multiple table in Amazon Athena

How to create multiple table in once in Amazon Athena? 如何在Amazon Athena中一次创建多个表?

create external table tab1 (id int, nam string);
create external table tab2 (id int, nam string);
create external table tab3 (id int, nam string);

An Amazon Athena query can only contain one SQL statement, otherwise you will receive an error: Amazon Athena查询只能包含一个SQL语句,否则您将收到错误消息:

Only one sql statement is allowed. 只允许一个sql语句。

You will need to execute each statement in a separate query. 您需要在单独的查询中执行每个语句。

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

相关问题 我们如何使用 CloudFormation 在 Amazon Athena 中创建数据库和表 - How can we create database and table in Amazon Athena using CloudFormation Amazon Athena - 创建 Iceberg 表时出错 - Amazon Athena - Error Create Iceberg table 如何在Amazon Athena中创建链接表? - How to create linked tables in Amazon Athena? 亚马逊雅典娜的分区表 - Partitioning table for amazon athena 如何使用Amazon Athena创建仅包含某些特定文件(通配符)的表? - How can I create a table with only some specific files (wildcard) using Amazon Athena? 使用Amazon Athena创建表并查询json数据吗? - Create table and query json data using Amazon Athena? 亚马逊雅典娜表创建失败,“输入'没有可行的选择'创建外部'” - Amazon Athena table creation fails with “no viable alternative at input 'create external'” Amazon Athena CREATE EXTERNAL TABLE 不匹配的输入“外部”无效请求异常 - Amazon Athena CREATE EXTERNAL TABLE mismatched input 'external' invalidrequestexception Amazon Athena 表创建问题 - Amazon Athena table creation issue 如何使用一个位置路径从多个文件夹创建多个表,雅典娜也应该使用胶水爬虫来处理它 - how to create multiple table from multiple folder with one location path and athena should also work on it with glue crawler
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM