我在 Windows 10 上下载了本地 PosgreSQL 11。
我尝试将命令行窗口上的 psql 中的目录更改为 c:\Program Files\PostgreSQL\11\bin>
我收到无效命令或目录不存在
我尝试跟随
postgres=# cd c:\Program Files\PostgreSQL\11\bin
Invalid command \Program. Try \? for help.
postgres-# \cd c:\Program Files\PostgreSQL\11\bin
Invalid command \Program. Try \? for help.
postgres-# \cd..
Invalid command \cd... Try \? for help.
postgres-# \cd ..
postgres-# \cd Program Files
\cd: could not change directory to "Program": No such file or directory
Run Code Online (Sandbox Code Playgroud)
我什至不确定当前目录,因为无法识别 pwd:
postgres-# \! pwd
'pwd' is not recognized as an internal or external command,
operable program …Run Code Online (Sandbox Code Playgroud)