strongduanmu commented on issue #22170:
URL:
https://github.com/apache/shardingsphere/issues/22170#issuecomment-1319497223
openGuass currently has no documentation on sorting null values, but it is
compatible with PostgreSQL.
```sql
db_0=> SELECT * FROM t_ssdb_tb_1 order by a asc;
id | c_id | a | b
----+------+----+------------
2 | 1 | 20 | test21
2 | 3 | | Test22
(2 rows)
db_0=> SELECT * FROM t_ssdb_tb_1 order by a desc;
id | c_id | a | b
----+------+----+------------
2 | 3 | | Test22
2 | 1 | 20 | test21
(2 rows)
db_0=> SELECT * FROM t_ssdb_tb_1 order by a desc nulls last;
id | c_id | a | b
----+------+----+------------
2 | 1 | 20 | test21
2 | 3 | | Test22
(2 rows)
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]