Re: newbie - postgresql or mysql - Mailing list pgsql-general

From Michael Fuhr
Subject Re: newbie - postgresql or mysql
Date
Msg-id 20050831193840.GA20276@winnie.fuhr.org
Whole thread Raw
In response to Re: newbie - postgresql or mysql  (Frank <farocco@verizon.net>)
List 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

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: newbie - postgresql or mysql
Next
From: Brian Wong
Date:
Subject: Re: newbie - postgresql or mysql