I am trying to copy user information from csv file into Postgres database and the table name is user
.
I can import data from pgAdmin manually. However if I run the COPY user(columns) FROM csvfile...
command, it is giving me Syntax error at user
.
Is there any solution for this?
When I renamed the user
table to usert
, it worked and I was able to insert data.
Is the issue because of the table name?