Received: from imo28.mx.aol.com (imo28.mx.aol.com [198.81.17.72]) by hub.org (8.8.8/8.7.5) with ESMTP id VAA27791; Tue, 4 Aug 1998 21:38:54 -0400 (EDT) From: SierraAdm@aol.com Received: from SierraAdm@aol.com by imo28.mx.aol.com (IMOv14_b1.1) id KKPJa17154; Tue, 4 Aug 1998 21:38:21 +2000 (EDT) Message-ID: Date: Tue, 4 Aug 1998 21:38:21 EDT To: pgsql-novice@postgresql.org Cc: pgsql-sql@postgresql.org Mime-Version: 1.0 Subject: importing a pre sql db Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7bit X-Mailer: AOL 3.0 for Windows 95 sub 18 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.