#openGauss #入门 #安装 #数据库 #开源
知识来源:docs-opengauss.osinfra.cn/zh/
示例
-
对结果根据c_customer_sk字段值进行升序排列。
sql 代码解读复制代码openGauss=# SELECT * FROM customer_t1 ORDER BY c_customer_sk ASC; c_customer_sk | c_customer_id | c_first_name | c_last_name | amount ---------------+---------------+--------------+-------------+-------- 3869 | hello | Grace | | 1000 3869 | hello | Grace | | 1000 3869 | | Grace | | 3869 | hello | | | 3869 | hello | | | 4421 | Admin | Local | | 3000 6985 | maps | Joes | | 2200 9976 | world | James | | 5000 | | | | (9 rows)
#openGauss #入门 #安装 #数据库 #开源