I need to load the data from the CSV file to table in PostgreSQL. and I'm not a superuser to use the copy command. when i read few topics from the postgreSQL site I came to know abut the \copy
command using STDIN
and STDOUT
.
I have tried with the same but getting errors. what actually I was trying is I have CSV file located in 'D:/test/test.csv' trying to load in tablename:test by using the below copy command
command: \copy test from stdin.
what is exactly STDIN and where I have to assign the file path
And one more doubt do I need to run this command only in psql or i can run this in SQL workbench.