From: Jim C. Nasby <jnasby@pervasive.com>
To: Antoine <melser.anton@gmail.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: OT - select + must have from - sql standard syntax?
Date: Tue, 13 Jun 2006 16:02:47 -0500
Message-ID: <20060613210246.GA34196@pervasive.com> (raw)
In-Reply-To: <92d3a4950606130543y2aab73d8sbbbf04aee328b41f@mail.gmail.com>
References: <92d3a4950606130543y2aab73d8sbbbf04aee328b41f@mail.gmail.com>
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
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 using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: jnasby@pervasive.com, melser.anton@gmail.com
Subject: Re: OT - select + must have from - sql standard syntax?
In-Reply-To: <20060613210246.GA34196@pervasive.com>
* 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