ClickHouse/dbms/tests/queries/0_stateless/00670_truncate_temporary_table.sql
2019-06-03 20:36:27 +03:00

17 lines
444 B
SQL

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