feat: add isnull function (#3360)

* code fmt

* feat: add isnull function

* feat: add isnull function
This commit is contained in:
Kould
2024-02-22 20:41:25 +08:00
committed by GitHub
parent 1dc4fec662
commit 578dd8f87a
5 changed files with 214 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
CREATE TABLE t(a INTEGER, ts timestamp time index);
INSERT INTO t VALUES (1, 1), (null, 2), (3, 3);
SELECT ISNULL(a) from t;
SELECT ISNULL(null);
SELECT ISNULL(1);
SELECT ISNULL(-1);
SELECT ISNULL(1.0);
SELECT ISNULL(true);
SELECT ISNULL('string');
DROP TABLE t;