如何在PostgreSQL中显示反斜杠命令?

l2osamch  于 2023-11-18  发布在  PostgreSQL
关注(0)|答案(1)|浏览(190)

使用下面的\help\h,我可以显示如下所示的SQL命令:

\help

字符串
或者:

\h
postgres=# \help
Available help:
  ABORT                            CREATE USER
  ALTER AGGREGATE                  CREATE USER MAPPING
  ALTER COLLATION                  CREATE VIEW
  ALTER CONVERSION                 DEALLOCATE
  ALTER DATABASE                   DECLARE
  ALTER DEFAULT PRIVILEGES         DELETE
  ALTER DOMAIN                     DISCARD
  ALTER EVENT TRIGGER              DO
  ALTER EXTENSION                  DROP ACCESS METHOD
  ALTER FOREIGN DATA WRAPPER       DROP AGGREGATE
  ALTER FOREIGN TABLE              DROP CAST
  ALTER FUNCTION                   DROP COLLATION
  ALTER GROUP                      DROP CONVERSION
  ALTER INDEX                      DROP DATABASE
  ALTER LANGUAGE                   DROP DOMAIN
...

的数据
现在,我如何在PostgreSQL中显示反斜杠命令,如\l\dt\q\h等?

yptwkmov

yptwkmov1#

使用下面的\?,您可以显示PostgreSQL中的反斜杠命令,如下所示:

\?

个字符

相关问题