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

run:
"CREATE TABLE xxx
(
id serial NOT NULL,
name character varying
);
insert into xxx select default values,place_name from air_bui;"

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

How can I do?

Bill Gates

_________________________________________________________________
与联机的朋友进行交流,请使用 MSN Messenger:  http://messenger.msn.com/cn  



pgsql-sql by date:

Previous
From: "Sabin Coanda"
Date:
Subject: Re: ISO time zone format
Next
From: "Ashish Karalkar"
Date:
Subject: Re: How to use serial variable to insert into muiti-recrods?