ClickHouse/tests/queries/0_stateless/01073_attach_if_not_exists.sql
2024-05-30 19:41:08 +00:00

9 lines
221 B
SQL

CREATE TABLE aine (a Int) ENGINE = Log;
ATTACH TABLE aine; -- { serverError TABLE_ALREADY_EXISTS }
ATTACH TABLE IF NOT EXISTS aine;
DETACH TABLE aine;
ATTACH TABLE IF NOT EXISTS aine;
EXISTS TABLE aine;
DROP TABLE aine;