From: SierraAdm@aol.com
To: pgsql-novice@postgresql.org
Cc: pgsql-sql@postgresql.org
Subject: importing a pre sql db
Date: Tue, 4 Aug 1998 21:38:21 EDT
Message-ID: <d8dec90e.35c7b78e@aol.com> (raw)
I have, as user postgres, created the database wc_fields via createdb.
Now I wish to create some tables.
The man pages - man copy - tell me how to copy values.
How do I set up my table definitions from an external file?
I would like to convert my existing table definition which is in the form
database wc_fields
file wc_members
field wc_last_name type character length 20
... more such fields ...
I can convert that to
create table wc_members (
wc_last_name char(20),
... more such ... )
How do I get it in as the table definition?
After that I can edit existing data and use the copy from command .
Now is this a novice question or an sql question -
that is why I posted in two places.
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: SierraAdm@aol.com, pgsql-novice@postgresql.org
Subject: Re: importing a pre sql db
In-Reply-To: <d8dec90e.35c7b78e@aol.com>
References: <d8dec90e.35c7b78e@aol.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