Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 3038A9FB43C for ; Thu, 12 Oct 2006 04:49:01 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 77053-01 for ; Thu, 12 Oct 2006 04:48:56 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from serveurmail01.codata.be (125.123.146.82.ipv4.evonet.be [82.146.123.125]) by postgresql.org (Postfix) with ESMTP id 029529FB428 for ; Thu, 12 Oct 2006 04:48:52 -0300 (ADT) Received: from localhost (localhost.localdomain [127.0.0.1]) by serveurmail01.codata.be (Postfix) with ESMTP id C0D70183813D; Thu, 12 Oct 2006 09:48:51 +0200 (CEST) X-DSPAM-Result: Innocent X-DSPAM-Processed: Thu Oct 12 09:48:51 2006 X-DSPAM-Confidence: 0.5275 X-DSPAM-Probability: 0.0000 X-DSPAM-Signature: 452df363116111222944467 X-DSPAM-Factors: 27, X-Virus-Scanned: amavisd-new at Received: from serveurmail01.codata.be ([127.0.0.1]) by localhost (serveurmail01.codata.be [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4V8YXku3mlEd; Thu, 12 Oct 2006 09:48:51 +0200 (CEST) Received: from [127.0.0.1] (161.177-112-217.adsl.belcenter.be [217.112.177.161]) by serveurmail01.codata.be (Postfix) with ESMTP id 9CA731838700; Thu, 12 Oct 2006 09:48:50 +0200 (CEST) Message-ID: <452DF362.50307@freesurf.fr> Date: Thu, 12 Oct 2006 09:48:50 +0200 From: Arnaud Lesauvage User-Agent: Thunderbird 1.5.0.7 (Windows/20060909) MIME-Version: 1.0 To: Hiroshi Inoue CC: pgsql-odbc@postgresql.org Subject: Re: Access2000 & sequence as primary key in view : #DELETED References: <452CAEC2.5070903@freesurf.fr> <452DA82D.9000701@tpf.co.jp> <452DED12.6000104@freesurf.fr> <452DF1EA.7090401@tpf.co.jp> In-Reply-To: <452DF1EA.7090401@tpf.co.jp> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Antivirus: avast! (VPS 0641-2, 10/10/2006), Outbound message X-Antivirus-Status: Clean X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.335 tagged_above=0 required=5 tests=DNS_FROM_RFC_ABUSE, FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200610/34 X-Sequence-Number: 8297 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).