可能是一个非常微不足道的问题,但我对此不确定,也不想失去桌子。如何在 Athena 中重命名表?
Database name - friends
table name - centralPark
desired table name -centralPerk
Run Code Online (Sandbox Code Playgroud)
esh*_*ana 10
you can't!
see the list of unsupported DDL in Athena.
what you can do is to make a new table using select:
CREATE TABLE centralPark
AS SELECT * FROM centralPerk
WITH DATA
Run Code Online (Sandbox Code Playgroud)
and drop the old table:
DROP TABLE IF EXISTS centralPerk
Run Code Online (Sandbox Code Playgroud)