Search Postgresql Archives

Re: Frustration with \copy

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ralph Smith <rsmith@xxxxxxxxxxx> writes:
> I have a one column .txt file on Ubuntu that I'm trying to upload, and ....
> 	\copy new_coupons '/home/rsmith/testfile.txt' 

I think you need
	\copy new_coupons from '...'

Like it says, it's supposed to match the backend syntax, modulo needing
a starting backslash and no ending semicolon.

			regards, tom lane

-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux