X-Original-To: pgsql-performance-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id EE2779F9316 for ; Tue, 13 Jun 2006 18:03:24 -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 29366-01 for ; Tue, 13 Jun 2006 18:03:12 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from noel.decibel.org (noel.decibel.org [67.100.216.10]) by postgresql.org (Postfix) with ESMTP id 460459FA5F8 for ; Tue, 13 Jun 2006 18:03:11 -0300 (ADT) Received: by noel.decibel.org (Postfix, from userid 1001) id E73515648B; Tue, 13 Jun 2006 16:02:47 -0500 (CDT) Received: (hashcash-sendmail, from uid 1001); Tue, 13 Jun 2006 16:02:47 -0500 Date: Tue, 13 Jun 2006 16:02:47 -0500 From: "Jim C. Nasby" To: Antoine Cc: pgsql-performance@postgresql.org Subject: Re: OT - select + must have from - sql standard syntax? Message-ID: <20060613210246.GA34196@pervasive.com> References: <92d3a4950606130543y2aab73d8sbbbf04aee328b41f@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <92d3a4950606130543y2aab73d8sbbbf04aee328b41f@mail.gmail.com> X-Operating-System: FreeBSD 6.0-RELEASE-p4 amd64 X-Distributed: Join the Effort! http://www.distributed.net User-Agent: Mutt/1.5.11 X-Hashcash: 1:20:060613:melser.anton@gmail.com::cRhVOmf1RLmNc2eI:000000000000000 0000000000000000000000000xm2 X-Hashcash: 1:20:060613:pgsql-performance@postgresql.org::ax1w9e2kGb/cFbco:00000 00000000000000000000000021sL X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200606/205 X-Sequence-Number: 19562 On Tue, Jun 13, 2006 at 02:43:45PM +0200, Antoine wrote: > Hi, > I don't have a copy of the standard on hand and a collegue is claiming > that there must be a from clause in a select query (he is an oracle > guy). This doesn't seem to be the case for postgres... does anyone > know? Dunno, but I know that other databases (at least DB2) don't require FROM either. In Oracle, if you want to do something like SELECT now(); you actually have to do SELECT now() FROM dual; where dual is a special, hard-coded table in Oracle that has only one row. Personally, I find their approach to be pretty stupid. -- Jim C. Nasby, Sr. Engineering Consultant jnasby@pervasive.com Pervasive Software http://pervasive.com work: 512-231-6117 vcard: http://jim.nasby.net/pervasive.vcf cell: 512-569-9461