1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-29 08:21:15 +03:00
Files
mariadb-columnstore-engine/mysql-test/columnstore/devregression/r/mcs7200_regression_MCOL-1403.result
2022-12-09 02:24:40 +00:00

28 lines
831 B
Plaintext

USE tpch1;
drop table if exists mcol1403a;
drop table if exists mcol1403b;
create table mcol1403a (a int, b varchar(4)) engine=columnstore;
create table mcol1403b (a int, b char(20), c varchar(20)) engine=columnstore;
insert into mcol1403a values (1, 'ABC ');
select * from mcol1403a where b = 'ABC';
a b
1 ABC
select * from mcol1403a where b like 'ABC';
a b
select a, hex(b) from mcol1403a;
a hex(b)
1 41424320
insert into mcol1403b values (1, 'Majestic12 ', 'Majestic12 ');
select * from mcol1403b where lower(b) like 'majestic12 ';
a b c
select * from mcol1403b where lower(c) like 'majestic12 ';
a b c
1 Majestic12 Majestic12
select concat(b, '#') from mcol1403b where b like '% ';
concat(b, '#')
select concat(c, '#') from mcol1403b where c like '% ';
concat(c, '#')
Majestic12 #
drop table mcol1403a;
drop table mcol1403b;