Executing password-protected psql from python

前端 未结 0 1217
遥遥无期
遥遥无期 2020-12-08 02:33

I need to execute the following command from Python on Windows:

psql -h localhost -p 5432 -U postgres -f script.sql db_name

The above scr

相关标签:
回答
  • 消灭零回复
提交回复
热议问题