📜  psql 命令未找到 windows - SQL 代码示例

📅  最后修改于: 2022-03-11 15:05:36.613000             🧑  作者: Mango

代码示例2
Assuming you installed PostgreSQL on Windows with the PostgreSQL "One-click" installer packaged by EnterpriseDB, psql is not added to the PATH automatically. That's partly because adding it to the path could otherwise cause confusion when people have multiple versions of PostgreSQL installed.

You need to specify the full explicit path to psql, eg:

"%PROGRAMFILES%\Postgresql\9.2\bin\psql.exe"
or add psql to the user PATH environment variable, see eg this guide.