pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Arnaud Lesauvage <thewild@freesurf.fr>
To: Hiroshi Inoue <inoue@tpf.co.jp>
Cc: pgsql-odbc@postgresql.org
Subject: Re: Access2000 & sequence as primary key in view : #DELETED
Date: Thu, 12 Oct 2006 09:48:50 +0200
Message-ID: <452DF362.50307@freesurf.fr> (raw)
In-Reply-To: <452DF1EA.7090401@tpf.co.jp>
References: <452CAEC2.5070903@freesurf.fr>
	<452DA82D.9000701@tpf.co.jp>
	<452DED12.6000104@freesurf.fr>
	<452DF1EA.7090401@tpf.co.jp>

Hiroshi Inoue a écrit :
> Arnaud Lesauvage wrote:
>> Hiroshi Inoue a écrit :
>>> 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" ?
>> 
>> In Access, "index" is fine as a field identifier. You just have to 
>> reference it between brackets : [index].
> 
> What I meant is, for example
> 
> 1. Issue the query "select * from my_view".
> 2. You may get some data whose "index" = 1, 2, 3, .....
> 3. Then issue the query "select * from my_view where index = 1"
> 4. The query would return no data.

This is absolutely true, but actually this field is not really meant 
to be used as a primary key. I need it because this view is the base 
table of a csv export (and I need a unique "index" field in this export).
I chose it as the primary key in access only because I had no other 
"correct" field (integer, unique), and I know that I need this kind of 
field for a linked table to work correctly in Access.
Now I think that this #DELETED probleme does come from the fact that 
the index changes whenever you query the view.
For the moment, I use the view's "real" primary key in Access and it 
works OK (it is a 2 columns primary key though, but on two integer 
columns).



view thread (9+ messages)

Message-ID: <452DF362.50307@freesurf.fr>
Permalink:  ../452DF362.50307@freesurf.fr/
Also on:    postgresql.org/message-id/452DF362.50307@freesurf.fr

 · 

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 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: thewild@freesurf.fr, inoue@tpf.co.jp
  Subject: Re: Access2000 & sequence as primary key in view : #DELETED
  In-Reply-To: <452DF362.50307@freesurf.fr>
  References: <452CAEC2.5070903@freesurf.fr> <452DA82D.9000701@tpf.co.jp> <452DED12.6000104@freesurf.fr> <452DF1EA.7090401@tpf.co.jp> <452DF362.50307@freesurf.fr>

* 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