Re: multiple insert into's (may be NEWBIE question)

From: "scott(dot)marlowe" <scott(dot)marlowe(at)ihs(dot)com>
To: "Williams, Travis L, NPONS" <tlw(at)att(dot)com>
Cc: <pgsql-general(at)postgresql(dot)org>
Subject: Re: multiple insert into's (may be NEWBIE question)
Date: 2003-08-05 19:15:51
Message-ID: Pine.LNX.4.33.0308051308010.13847-100000@css120.ihs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, 5 Aug 2003, Williams, Travis L, NPONS wrote:

> I have a table (lets say a,text b,text) and I want to insert the data
> jim,jimmy and trav,travis can I do this with 1 insert into statement
> instead of 2?

Not with the current implementation of insert. There's been some
discussion of adding the multiple tuple insert seen in other databases,
but I don't think anyone's actually done it or even agreed on exactly how
to do it. I'm not sure if SQL 3 covers this, it seems like it hints at
it, but I can't read that stuff all that well most of the time.

I don't think there's a way right now though, without using some form of
copy.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Williams, Travis L, NPONS 2003-08-05 19:32:03 Re: multiple insert into's (may be NEWBIE question)
Previous Message Justin Tocci 2003-08-05 19:14:09 INSERT RULE QUERY ORDER