postgresql使用bat执行sql语句

set PGPORT=5432
set PGHOST=localhost
set PGUSER=postgres
set PGPASSWORD=123456
set THEDB=tysh_gdq
set PGBIN=C:\Program Files\PostgreSQL\10\bin
"%PGBIN%\psql"  -d "%THEDB%" -c "CREATE EXTENSION fuzzystrmatch;" 
pause

你可能感兴趣的:(postgresql使用bat执行sql语句)