Re: newbie - postgresql or mysql

From: Michael Fuhr <mike(at)fuhr(dot)org>
To: 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 19:38:40
Message-ID: 20050831193840.GA20276@winnie.fuhr.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2005-08-31 19:40:59 Re: newbie - postgresql or mysql
Previous Message Tom Lane 2005-08-31 19:22:43 Re: temp tables remain after server restart