In PostgreSQL, how to insert data with COPY command?

后端 未结 2 1968
野的像风
野的像风 2020-12-05 23:08

I have problem when run 1 project NodeJs with PostgreSQL database. I have error when trying to insert data in pgAdmin using the COPY command.

CO         


        
2条回答
  •  [愿得一人]
    2020-12-05 23:36

    First step is to create the Database belgianbeers on pgAdmin.

    Then open prompt and run psql -U postgres -d belgianbeers -a -f beers.sql

    This command line running e update database tables.

    Note: -U postgres = specifies postgres as the username

提交回复
热议问题