ClickHouse/tests/queries/0_stateless/02474_unhex_in_fix_string.sql
2022-11-15 12:33:14 +08:00

5 lines
343 B
SQL

drop table if exists unhex_in_fix_string_table;
create table unhex_in_fix_string_table ( dt Date, s1 FixedString(20), s2 String) engine=MergeTree partition by dt order by tuple();
insert into unhex_in_fix_string_table values(today(), '436C69636B486F757365', '436C69636B486F757365');
select unhex(s1), unhex(s2) from unhex_in_fix_string_table;