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

From: "Ashish Karalkar" <ashish(dot)karalkar(at)info-spectrum(dot)com>
To: "hu js" <hu(dot)bill2005(at)hotmail(dot)com>, <pgsql-sql(at)postgresql(dot)org>
Subject: Re: How to use serial variable to insert into muiti-recrods?
Date: 2007-09-06 07:48:23
Message-ID: 018f01c7f05a$653bf6e0$170211ac@LIONKING.COM
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

I think default is a key word whic u r using as a column name in select
statment.

With Regards
Ashish...

----- Original Message -----
From: "hu js" <hu(dot)bill2005(at)hotmail(dot)com>
To: <pgsql-sql(at)postgresql(dot)org>
Sent: Thursday, September 06, 2007 12:41 PM
Subject: [SQL] How to use serial variable to insert into muiti-recrods?

> 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
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/docs/faq

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Milen A. Radev 2007-09-06 07:49:52 Re: How to use serial variable to insert into muiti-recrods?
Previous Message hu js 2007-09-06 07:11:18 How to use serial variable to insert into muiti-recrods?