sort unstable result

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
This commit is contained in:
Ruihang Xia
2023-09-19 22:09:23 +08:00
parent 0f39450d62
commit 3abd5f9e60
2 changed files with 2 additions and 0 deletions

View File

@@ -6,6 +6,7 @@ insert into t0 values ('a', 1), (NULL,2), (NULL, 3), (NULL, 4), (NULL, 5), (NULL
Affected Rows: 7
-- SQLNESS SORT_RESULT 2 2
SELECT * FROM t0 ORDER BY t0.c0 DESC;
+------+-------------------------+

View File

@@ -2,6 +2,7 @@ create table t0 (c0 varchar, t TIMESTAMP TIME INDEX);
insert into t0 values ('a', 1), (NULL,2), (NULL, 3), (NULL, 4), (NULL, 5), (NULL,6), (NULL,7);
-- SQLNESS SORT_RESULT 2 2
SELECT * FROM t0 ORDER BY t0.c0 DESC;
CREATE TABLE test0 (job VARCHAR, name VARCHAR, t TIMESTAMP TIME INDEX);