pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Milen A. Radev <milen@radev.net>
To: pgsql-sql@postgresql.org
Subject: Re: How to use serial variable to insert into muiti-recrods?
Date: Thu, 06 Sep 2007 10:49:52 +0300
Message-ID: <fbobf1$i83$1@sea.gmane.org> (raw)
In-Reply-To: <BAY102-F21BF5CEECBDF3E1F70C90CF0C40@phx.gbl>
References: <BAY102-F21BF5CEECBDF3E1F70C90CF0C40@phx.gbl>

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





view thread (5+ messages)  latest in thread

Message-ID: <fbobf1$i83$1@sea.gmane.org>
Permalink:  ../fbobf1$i83$1@sea.gmane.org/
Also on:    postgresql.org/message-id/fbobf1$i83$1@sea.gmane.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: milen@radev.net
  Subject: Re: How to use serial variable to insert into muiti-recrods?
  In-Reply-To: <fbobf1$i83$1@sea.gmane.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox