你说你看不懂openGauss我都不信(五十四)

50 阅读1分钟

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

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

查看对象

gsql工具提供了若干高级特性,便于用户使用。常见用法如下:

  • 查看命令帮助信息

    \h [NAME]
    

    例如,查询ABORT的所有语法。

    openGauss=# \h ABORT
    Command:     ABORT
    Description: abort the current transaction
    Syntax:
    ABORT [ WORK | TRANSACTION ] ;
    
  • 切换数据库

    \c dbname
    

    例如,将postgres数据库切换为数据库dp_tpcc。

    openGauss=# \c db_tpcc
    Non-SSL connection (SSL connection is recommended when requiring high-security)
    You are now connected to database "db_tpcc" as user "omm".
    db_tpcc=# 
    

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

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