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

17 lines
444 B
MySQL
Raw Normal View History

2019-06-03 17:36:27 +00:00
drop temporary table if exists test_00670;
create temporary table test_00670(id int);
select '======Before Truncate======';
2019-06-03 17:36:27 +00:00
insert into test_00670 values(0);
select * from test_00670;
select '======After Truncate And Empty======';
2019-06-03 17:36:27 +00:00
truncate temporary table test_00670;
select * from test_00670;
select '======After Truncate And Insert Data======';
2019-06-03 17:36:27 +00:00
insert into test_00670 values(0);
select * from test_00670;
2019-06-03 17:36:27 +00:00
drop temporary table test_00670;