I would like to use the psql "\ copy" command to retrieve data from a tab delimited file in Postgres. I use this command:
\copy cm_state from 'state.data' with delimiter '\t' null as ;
But I get this warning (the table really loads fine):
WARNING: nonstandard use of escape in a string literal LINE 1: COPY cm_state FROM STDIN DELIMITER '\t' NULL AS ';' HINT: Use the escape string syntax for escapes, eg, E'\r\n'.
How to specify a tab if "\ t" is incorrect?
postgresql
Chris Curvey May 24 '11 at 3:45 p.m. 2011-05-24 15:45
source share