pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Zot O'Connor <zot@ZotConsulting.com>
To: pgsql-sql@postgresql.org
Subject: Stupid SQl question on inserting items
Date: Tue, 25 May 1999 10:31:58 -0700
Message-ID: <374ADE8E.E7895F5@ZotConsulting.com> (raw)

This is a dumb basic level SQL question.

is there any other way to insert records without having to fill in all
of the values as in

INSERT into table_name WITH VALUES (blah, blah, blah...)

or the COPY method?

It is becoming a chore to sync up a table with a lot of fields.   I am
porting several DB into postgres and using a variety of techniques to do
it (some of these are poorly formatted text files).  Most of the fields
are blank, so when I goof up, I spend 15 minutes comparing files to find
the problem.  The elusive "parse error near '" does not help much :)

I thought I knew how to do this with Postgres but can't seem to find it
in my notes.

I thought something along the lines of insert a blank (except for id)
record than updating it with name pairs might work.


-- 
Zot O'Connor

www.ZotConsulting.com
www.WhiteKnightHackers.com



view thread (5+ messages)  latest in thread

Message-ID: <374ADE8E.E7895F5@ZotConsulting.com>
Permalink:  ../374ADE8E.E7895F5@ZotConsulting.com/
Also on:    postgresql.org/message-id/374ADE8E.E7895F5@ZotConsulting.com

 · 

reply

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: zot@ZotConsulting.com
  Subject: Re: Stupid SQl question on inserting items
  In-Reply-To: <374ADE8E.E7895F5@ZotConsulting.com>
  References: <374ADE8E.E7895F5@ZotConsulting.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