ClickHouse/dbms/tests/queries/0_stateless/00670_truncate_temporary_table.sql

17 lines
390 B
SQL

drop temporary 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 temporary table test;
select * from test;
select '======After Truncate And Insert Data======';
insert into test values(0);
select * from test;
drop temporary table test;