Re: How to use serial variable to insert into muiti-recrods? - Mailing list pgsql-sql

From Milen A. Radev
Subject Re: How to use serial variable to insert into muiti-recrods?
Date
Msg-id fbobf1$i83$1@sea.gmane.org
Whole thread Raw
In response to How to use serial variable to insert into muiti-recrods?  ("hu js" <hu.bill2005@hotmail.com>)
List 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




pgsql-sql by date:

Previous
From: "Ashish Karalkar"
Date:
Subject: Re: How to use serial variable to insert into muiti-recrods?
Next
From: Richard Huxton
Date:
Subject: Re: How to use serial variable to insert into muiti-recrods?