DROP TABLE文
drop table文は、指定された表および関連するすべての索引をデータベースから削除します。
構文
drop_table_statement ::= DROP TABLE [IF EXISTS] name_path
セマンティクス
例5-11 Drop Table
CREATE TABLE DROPTEST (id INTEGER, name STRING, PRIMARY KEY(id));
DROP TABLE DROPTEST;
複数リージョン表を削除するには、まずその子表をすべて削除します。そうしないと、次に示すように、DROP文がエラーになります。
sql-> drop table users;
Error handling command drop table users: Error: User error in query:
DROP TABLE failed for table users:
Cannot remove table users, it is still referenced by child table