How to import existing *.sql files in PostgreSQL 8.4?

后端 未结 5 1849
悲哀的现实
悲哀的现实 2020-12-04 06:51

I am using PostgreSQL 8.4, and I have some *.sql files to import into a database. How can I do so?

5条回答
  •  粉色の甜心
    2020-12-04 06:58

    Be careful with "/" and "\". Even on Windows the command should be in the form:

    \i c:/1.sql
    

提交回复
热议问题