Re: How to use serial variable to insert into muiti-recrods?

From: "Milen A(dot) Radev" <milen(at)radev(dot)net>
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: How to use serial variable to insert into muiti-recrods?
Date: 2007-09-06 07:49:52
Message-ID: fbobf1$i83$1@sea.gmane.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

hu js написа:
> run:
> "CREATE TABLE xxx
> (
> id serial NOT NULL,
> name character varying
> );
> insert into xxx select default values,place_name from air_bui;"

insert into xxx (name) select place_name from air_bui;

>
> fail:
> "ERROR: syntax error at or near "default"
> SQL state: 42601
> Character: 24"
>

--
Milen A. Radev

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Richard Huxton 2007-09-06 08:16:29 Re: How to use serial variable to insert into muiti-recrods?
Previous Message Ashish Karalkar 2007-09-06 07:48:23 Re: How to use serial variable to insert into muiti-recrods?