你说你看不懂openGauss我都不信(九十六)

22 阅读1分钟

#openGauss #入门 #安装 #数据库 #开源

知识来源:docs-opengauss.osinfra.cn/zh/

  • 对结果根据c_customer_sk字段值进行降序排列。

    openGauss=# SELECT * FROM customer_t1 ORDER BY c_customer_sk DESC;
     c_customer_sk | c_customer_id | c_first_name | c_last_name | amount
    ---------------+---------------+--------------+-------------+--------
                   |               |              |             |
              9976 | world         | James        |             |   5000
              6985 | maps          | Joes         |             |   2200
              4421 | Admin         | Local        |             |   3000
              3869 | hello         | Grace        |             |   1000
              3869 | hello         |              |             |
              3869 | hello         | Grace        |             |   1000
              3869 |               | Grace        |             |
              3869 | hello         |              |             |
    (9 rows)
    

#openGauss #入门 #安装 #数据库 #开源

知识来源:docs-opengauss.osinfra.cn/zh/