From: Hiroshi Inoue <inoue@tpf.co.jp>
To: Arnaud Lesauvage <thewild@freesurf.fr>
Cc: pgsql-odbc@postgresql.org
Subject: Re: Access2000 & sequence as primary key in view : #DELETED
Date: Thu, 12 Oct 2006 11:27:57 +0900
Message-ID: <452DA82D.9000701@tpf.co.jp> (raw)
In-Reply-To: <452CAEC2.5070903@freesurf.fr>
References: <452CAEC2.5070903@freesurf.fr>
Arnaud Lesauvage wrote:
> Hi list !
>
> I created a view in postgresql (quite complex, multiple tables are
> linked). The aim is to link it in acces via ODBC.
>
> In needed to auto-number the rows, and I created a sequence for that
> (thanks to a good advice on the GENERAL list).
>
> In Access, I know that I need good primary keys on my linked tables
> (integer, single column). I though that using this column as a primary
> key would be a good idea .
>
> The view looks like this :
> CREATE OR REPLACE VIEW my_view AS
> SELECT nextval('my_view_seq'::regclass)::integer AS "index", <many
> other fields> FROM <many tables>;
Though I don't understand the problem wholly, the virtual column "index"
doesn't seem appropriate for the identifier. How do you find the row
using the "index" ?
regards,
Hiroshi Inoue
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-odbc@postgresql.org
Cc: inoue@tpf.co.jp, thewild@freesurf.fr
Subject: Re: Access2000 & sequence as primary key in view : #DELETED
In-Reply-To: <452DA82D.9000701@tpf.co.jp>
References: <452CAEC2.5070903@freesurf.fr> <452DA82D.9000701@tpf.co.jp>
* 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