ClickHouse/dbms/tests/queries/0_stateless/00670_truncate_temporary_table.sql
2018-07-10 22:25:08 +08:00

17 lines
370 B
SQL

drop table if exists test;
create temporary table test(id int);
select '======Before Truncate======';
insert into test values(0);
select * from test;
select '======After Truncate And Empty======';
truncate table test;
select * from test;
select '======After Truncate And Insert Data======';
insert into test values(0);
select * from test;
drop table if exists test;