ClickHouse/tests/queries/0_stateless/01105_string_like.sql
Ivan 97f2a2213e
Move all folders inside /dbms one level up ()
* Move some code outside dbms/src folder
* Fix paths
2020-04-02 02:51:21 +03:00

47 lines
2.0 KiB
SQL

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%';