方法一:
在数据库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