Re: newbie - postgresql or mysql

From: "Dann Corbit" <DCorbit(at)connx(dot)com>
To: "Michael Fuhr" <mike(at)fuhr(dot)org>, "Frank" <farocco(at)verizon(dot)net>
Cc: "Scott Marlowe" <smarlowe(at)g2switchworks(dot)com>, <pgsql-general(at)postgresql(dot)org>
Subject: Re: newbie - postgresql or mysql
Date: 2005-08-31 20:24:48
Message-ID: D425483C2C5C9F49B5B7A41F8944154757D048@postal.corporate.connx.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

If the inserts are all a bunch of data statements like that, a SED
script could turn them into something for bulk load via COPY easily
enough.

Might be an even better solution, depending on what the OP is trying to
accomplish.

> -----Original Message-----
> From: pgsql-general-owner(at)postgresql(dot)org [mailto:pgsql-general-
> owner(at)postgresql(dot)org] On Behalf Of Michael Fuhr
> Sent: Wednesday, August 31, 2005 12:39 PM
> To: Frank
> Cc: Scott Marlowe; pgsql-general(at)postgresql(dot)org
> Subject: Re: [GENERAL] newbie - postgresql or mysql
>
> On Wed, Aug 31, 2005 at 03:17:29PM -0400, Frank wrote:
> > This fails to insert records
> >
> > >> insert into category values
> > >> (4, 'Hardware - Monitor', 2, '2004-10-12 10:50:01'),
> > >> (5, 'Hardware - Printer', 2, '2004-10-12 10:50:02'),
> > >> (6, 'Hardware - Terminal', 2, '2004-10-12 10:50:02'),
>
> PostgreSQL doesn't support this form of INSERT; you'll have to use
> a separate INSERT per record or use COPY. Another method, although
> probably not useful in this case, is to insert records from a
subquery;
> see the INSERT documentation for more information.
>
> --
> Michael Fuhr
>
> ---------------------------(end of
broadcast)---------------------------
> TIP 1: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo(at)postgresql(dot)org so that
your
> message can get through to the mailing list cleanly

Browse pgsql-general by date

  From Date Subject
Next Message Qingqing Zhou 2005-08-31 20:54:40 Re: "GiST access is not concurrent"
Previous Message Brian Wong 2005-08-31 19:54:13 Re: newbie - postgresql or mysql