Trying to use the "copy" command for PostgreSQL in the windows cli command:
COPY myTable FROM value.txt (DELIMITER('|'));
I can not find the "copy" executable in the bin directory.
Can you tell me how can I run the 'copy' command in cli?
Added: The copy function will be used in my Windows application. You must run it directly from the application.
Thanks in advance.
I managed to see my desired result using the following approach.
psql.exe -f copy.sql -p 5433 -U user -s postgres copy.sql \copy TARGET_TABLE FROM source.txt (DELIMITER('#'));
source share