方法一:
在數據庫bin目錄下,
Linux$./psql -s yourDatabaseName -f /yourFilePath/test.sql
方法二:
登錄psql後,
postgres=# \i /yourFilePath/test.sql
方法一:
在數據庫bin目錄下,
Linux$./psql -s yourDatabaseName -f /yourFilePath/test.sql
方法二:
登錄psql後,
postgres=# \i /yourFilePath/test.sql