Обсуждение: COPY from PGAdmin
Hello, is is possible to run COPY query from pgadmin query window with data "from stdin"? I am trying with example: COPY phone (ph_id, ph_phone, ph_name) FROM stdin; 1 37061054322 John 2 37065992332 Tom \. But I get error: ERROR: syntax error at or near "1" LINE 2: 1 37061054322 John ^ I analyzed plain text dump file of the same table, and I see that it is the same query, but it do not work from pgadmin.. --- Lukas UAB nSoft www.nSoft.lt
I don't believe pgAdmin is capable of doing that.
Adding Dave so he can correct me.
Regards,
--
gurjeet.singh
@ EnterpriseDB - The Enterprise Postgres Company
http://www.EnterpriseDB.com
singh.gurjeet@{ gmail | yahoo }.com
Twitter/Skype: singh_gurjeet
Mail sent from my BlackLaptop device
Adding Dave so he can correct me.
Regards,
On Mon, Dec 27, 2010 at 11:48 AM, Lukas <lukas@fmf.vgtu.lt> wrote:
Hello,
is is possible to run COPY query from pgadmin query window with data
"from stdin"?
I am trying with example:
COPY phone (ph_id, ph_phone, ph_name) FROM stdin;
1 37061054322 John
2 37065992332 Tom
\.
But I get error:
ERROR: syntax error at or near "1"
LINE 2: 1 37061054322 John
^
I analyzed plain text dump file of the same table, and I see that it is
the same query, but it do not work from pgadmin..
---
Lukas
UAB nSoft
www.nSoft.lt
--
Sent via pgsql-novice mailing list (pgsql-novice@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-novice
--
gurjeet.singh
@ EnterpriseDB - The Enterprise Postgres Company
http://www.EnterpriseDB.com
singh.gurjeet@{ gmail | yahoo }.com
Twitter/Skype: singh_gurjeet
Mail sent from my BlackLaptop device
You are correct Gurjeet. On 12/27/10, Gurjeet Singh <singh.gurjeet@gmail.com> wrote: > I don't believe pgAdmin is capable of doing that. > > Adding Dave so he can correct me. > > Regards, > > On Mon, Dec 27, 2010 at 11:48 AM, Lukas <lukas@fmf.vgtu.lt> wrote: > >> Hello, >> >> is is possible to run COPY query from pgadmin query window with data >> "from stdin"? >> I am trying with example: >> COPY phone (ph_id, ph_phone, ph_name) FROM stdin; >> 1 37061054322 John >> 2 37065992332 Tom >> \. >> >> But I get error: >> ERROR: syntax error at or near "1" >> LINE 2: 1 37061054322 John >> ^ >> >> I analyzed plain text dump file of the same table, and I see that it is >> the same query, but it do not work from pgadmin.. >> >> >> --- >> Lukas >> UAB nSoft >> www.nSoft.lt >> >> >> -- >> Sent via pgsql-novice mailing list (pgsql-novice@postgresql.org) >> To make changes to your subscription: >> http://www.postgresql.org/mailpref/pgsql-novice >> > > > > -- > gurjeet.singh > @ EnterpriseDB - The Enterprise Postgres Company > http://www.EnterpriseDB.com > > singh.gurjeet@{ gmail | yahoo }.com > Twitter/Skype: singh_gurjeet > > Mail sent from my BlackLaptop device > -- Dave Page Blog: http://pgsnake.blogspot.com Twitter: @pgsnake EnterpriseDB UK: http://www.enterprisedb.com The Enterprise PostgreSQL Company