提交 6dd3ed6f authored 作者: Thomas Mueller's avatar Thomas Mueller

--no commit message

--no commit message
上级 a85afcb5
--- special grammar and test cases --------------------------------------------------------------------------------------------- --- special grammar and test cases ---------------------------------------------------------------------------------------------
CREATE TABLE TEST(ID INT PRIMARY KEY, NAME VARCHAR(255), C INT);
> ok
INSERT INTO TEST VALUES(1, '10', NULL), (2, '0', NULL);
> update count: 2
SELECT LEAST(ID, C, NAME), GREATEST(ID, C, NAME), LEAST(NULL, C), GREATEST(NULL, NULL), ID FROM TEST ORDER BY ID;
> LEAST(ID, C, NAME) GREATEST(ID, C, NAME) LEAST(NULL, C) NULL ID
> ------------------ --------------------- -------------- ---- --
> 1 10 null null 1
> 0 2 null null 2
> rows (ordered): 2
DROP TABLE IF EXISTS TEST;
> ok
create table people (family varchar(1) not null, person varchar(1) not null); create table people (family varchar(1) not null, person varchar(1) not null);
> ok > ok
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论