ClickHouse/tests/queries/0_stateless/01105_string_like.sql

47 lines
2.0 KiB
MySQL
Raw Normal View History

2020-03-26 19:42:31 +00:00
SELECT arrayJoin(['hello', 'world']) LIKE 'hello';
SELECT arrayJoin(['hello', 'world']) LIKE 'world';
SELECT arrayJoin(['hello', 'world']) LIKE 'xyz';
SELECT arrayJoin(['hello', 'world']) LIKE 'hell';
SELECT arrayJoin(['hello', 'world']) LIKE 'orld';
SELECT arrayJoin(['hello', 'world']) LIKE '%hello%';
SELECT arrayJoin(['hello', 'world']) LIKE '%world%';
SELECT arrayJoin(['hello', 'world']) LIKE '%xyz%';
SELECT arrayJoin(['hello', 'world']) LIKE '%hell%';
SELECT arrayJoin(['hello', 'world']) LIKE '%orld%';
SELECT arrayJoin(['hello', 'world']) LIKE '%hello';
SELECT arrayJoin(['hello', 'world']) LIKE '%world';
SELECT arrayJoin(['hello', 'world']) LIKE '%xyz';
SELECT arrayJoin(['hello', 'world']) LIKE '%hell';
SELECT arrayJoin(['hello', 'world']) LIKE '%orld';
SELECT arrayJoin(['hello', 'world']) LIKE 'hello%';
SELECT arrayJoin(['hello', 'world']) LIKE 'world%';
SELECT arrayJoin(['hello', 'world']) LIKE 'xyz%';
SELECT arrayJoin(['hello', 'world']) LIKE 'hell%';
SELECT arrayJoin(['hello', 'world']) LIKE 'orld%';
SELECT arrayJoin(['hello', 'world']) LIKE '%he%o%';
SELECT arrayJoin(['hello', 'world']) LIKE '%w%ld%';
SELECT arrayJoin(['hello', 'world']) LIKE '%x%z%';
SELECT arrayJoin(['hello', 'world']) LIKE '%hell_';
SELECT arrayJoin(['hello', 'world']) LIKE '_orld%';
SELECT arrayJoin(['hello', 'world']) LIKE '%he__o%';
SELECT arrayJoin(['hello', 'world']) LIKE '%w__ld%';
SELECT arrayJoin(['hello', 'world']) LIKE '%x%z%';
SELECT arrayJoin(['hello', 'world']) LIKE 'hell_';
SELECT arrayJoin(['hello', 'world']) LIKE '_orld';
SELECT arrayJoin(['hello', 'world']) LIKE 'helloworld';
SELECT arrayJoin(['hello', 'world']) LIKE '%helloworld%';
SELECT arrayJoin(['hello', 'world']) LIKE '%elloworl%';
SELECT arrayJoin(['hello', 'world']) LIKE '%ow%';
SELECT arrayJoin(['hello', 'world']) LIKE '%o%w%';
SELECT arrayJoin(['hello', 'world']) LIKE '%o%';
SELECT arrayJoin(['hello', 'world']) LIKE '%l%';
SELECT arrayJoin(['hello', 'world']) LIKE '%l%o%';
SELECT arrayJoin(['hello', 'world']) LIKE '%o%l%';