I need to copy data from a text file to a table i used copy command
like this
Expand|Select|Wrap|Line Numbers
- copy city from 'e\ccccc.txt' with delimiter as ','
path of the file in my system is
Expand|Select|Wrap|Line Numbers
- \\ttcpl2\e\ccccc.txt
Expand|Select|Wrap|Line Numbers
- copy city from '\\Ttcpl2\e\ccccc.txt' with delimiter as ','
Expand|Select|Wrap|Line Numbers
- WARNING: nonstandard use of \\ in a string literal
- LINE 1: copy city from '\\Ttcpl2\e\ccccc.txt' with delimiter as ','
- ^
- HINT: Use the escape string syntax for backslashes, e.g., E'\\'.
- ERROR: could not open file "\Ttcpl2eccccc.txt" for reading: No such file or directory
- SQL state: 58P01
Expand|Select|Wrap|Line Numbers
- \COPY city FROM '\\ttcpl2\e\ccccc.txt ' WITH DELIMITER ','
Expand|Select|Wrap|Line Numbers
- ERROR: syntax error at or near "\"
- SQL state: 42601
- Character: 1