mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 15:42:02 +00:00
97f2a2213e
* Move some code outside dbms/src folder * Fix paths
10 lines
323 B
SQL
10 lines
323 B
SQL
DROP TABLE IF EXISTS has_function;
|
|
|
|
CREATE TABLE has_function(arr Array(Nullable(String))) ENGINE = Memory;
|
|
INSERT INTO has_function(arr) values ([null, 'str1', 'str2']),(['str1', 'str2']), ([]), ([]);
|
|
|
|
SELECT arr, has(`arr`, 'str1') FROM has_function;
|
|
SELECT has([null, 'str1', 'str2'], 'str1');
|
|
|
|
DROP TABLE has_function;
|