Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 692A7633CFA for ; Wed, 6 May 2009 16:12:58 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 22659-04 for ; Wed, 6 May 2009 16:12:53 -0300 (ADT) X-Greylist: delayed 01:13:26.724588 by SQLgrey-1.7.6 Received: from smtp.domeneshop.no (smtp.domeneshop.no [194.63.248.54]) by mail.postgresql.org (Postfix) with ESMTP id A36E8633CA2 for ; Wed, 6 May 2009 16:12:50 -0300 (ADT) Received: from 62.205.216.81.static.k.siw.siwnet.net ([81.216.205.62] helo=charlie.local) by smtp.domeneshop.no with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1M1lOq-0003s8-7w; Wed, 06 May 2009 19:59:20 +0200 Message-ID: <4A01CFE8.9010005@blogg.se> Date: Wed, 06 May 2009 19:59:04 +0200 From: =?ISO-8859-1?Q?Robert_Gravsj=F6?= User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.4; en-US; rv:1.9.1b5pre) Gecko/20090506 Shredder/3.0b3pre MIME-Version: 1.0 To: liuzg4 liuzg4 CC: pgsql-general@postgresql.org Subject: Re: how to select temp table References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200905/212 X-Sequence-Number: 147350 On 2009-05-06 14.34, liuzg4 liuzg4 wrote: > ver 8.4 > i create two table with same name named 'testtable' > > one is temp table > > > > i select * from testtable > then this table is a public or a temp ??? Temp. To access public use "select * from public.testtable". "Temporary tables exist in a special schema, so a schema name cannot be given when creating a temporary table." See http://www.postgresql.org/docs/8.4/static/sql-createtable.html for details. /r > drop table testtable > > then is this table a public or a temp? i test ,it drop temp table fisrst! > > so am i must show public or pg_temp_1 when i has two table with same name > !!! >