From: sara simoes <riojan2005@yahoo.com.br>
To: pg-interfaces@postgresql.org
Subject: Migrate data from Access to PostgreSQL
Date: Mon, 20 Jun 2005 07:54:55 -0300 (ART)
Message-ID: <20050620105455.61490.qmail@web61213.mail.yahoo.com> (raw)
Hello,
I've got an Access database and I need to migrate the data from the Access database to a Postgresql database.
Up to this moment, I've done the following:
- Create a table in postgresql
create table clients
(
name text,
phone text,
age integer
);
- export the table client in "tab" delimited format from access with the
fields in the same order as in postgresql :
mary 5551212 25
peter 5551313 26
paul 5551414 30
john 5551515 27
- use "copy table from..." command
copy client from 'C:/teste.txt';
Nevertheless, the data was not inserted and I received the following error message:
Line with OID 0 inserted.
ERROR: syntax error at or near "COPY" at character 9
What might be the problem? If export the table with comma delimited and use
COPY client FROM 'C:/teste.txt' using delimiters ',';
I get the following error message:
Line with OID 0 inserted.
ERRO R: syntax error at or near "COPY" at character 9
Note: I'm working with PgAdminIII
I would appreciate your help,
---------------------------------
Yahoo! Acesso Grátis: Internet rápida e grátis. Instale o discador agora!
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-interfaces@postgresql.org
Cc: riojan2005@yahoo.com.br, pg-interfaces@postgresql.org
Subject: Re: Migrate data from Access to PostgreSQL
In-Reply-To: <20050620105455.61490.qmail@web61213.mail.yahoo.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox