使用下面的\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
等?
1条答案
按热度按时间yptwkmov1#
使用下面的
\?
,您可以显示PostgreSQL中的反斜杠命令,如下所示:个字符