1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-08-17 09:41:06 +03:00
Files
mariadb-columnstore-engine/mysql/queries/nightly/demo/test502/m0005.sql
2016-01-06 14:08:59 -06:00

35 lines
1.0 KiB
SQL

set autocommit=0;
delete from orders2 where o_orderdate <= '1992-08-31';
rollback;
update orders2 set o_orderdate='2015-01-01' where o_orderdate <= '1992-08-31';
commit;
delete from orders2 where o_orderdate = '2015-01-01';
commit;
select count(*) from orders2;
select count(o_orderkey) from orders2;
select count(o_custkey) from orders2;
select count(o_orderstatus) from orders2;
select count(o_totalprice) from orders2;
select count(o_orderdate) from orders2;
select count(o_orderpriority) from orders2;
select count(o_clerk) from orders2;
select count(o_shippriority) from orders2;
select count(o_comment) from orders2;
delete from orders2;
commit;
select count(*) from orders2;
select count(o_orderkey) from orders2;
select count(o_custkey) from orders2;
select count(o_orderstatus) from orders2;
select count(o_totalprice) from orders2;
select count(o_orderdate) from orders2;
select count(o_orderpriority) from orders2;
select count(o_clerk) from orders2;
select count(o_shippriority) from orders2;
select count(o_comment) from orders2;