pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: darcy@druid.net
To: Phuong Ma <pma@commandprompt.com>
Cc: Postgres SQL <pgsql-sql@postgresql.org>
Subject: Re: Shortcut?
Date: Tue, 29 May 2001 21:19:51 -0400 (EDT)
Message-ID: <20010530011951.7BA4F1A91@druid.net> (raw)
In-Reply-To: <3B14392D.C46B7B9B@commandprompt.com>

Thus spake Phuong Ma
> I'm running Postgres 7.1.  I read in the documentation that the from
> clause can be omitted from a select statement.  The example given in the
> documentation is:
> SELECT distributors.* WHERE name = 'Westwood';
> 
> I tried it on tables in our database, but it doesn't work.  Is that part
> of earlier versions of Postgres?

I assume you mean this.

  SELECT distributors.* WHERE distributors.name = 'Westwood';

I know that this example from my own database works.

devel=# SELECT country.country_name
devel-#     WHERE country.country_id = province.country_id AND
devel-#         province.prov = 'ON';
 country_name 
--------------
 Canada
(1 row)

Can you tell me where you found that example.  I couldn't find it in the
documentation sources.

-- 
D'Arcy J.M. Cain <darcy@{druid|vex}.net>   |  Democracy is three wolves
http://www.druid.net/darcy/                |  and a sheep voting on
+1 416 425 1212     (DoD#0082)    (eNTP)   |  what's for dinner.



view thread (3+ messages)  latest in thread

Message-ID: <20010530011951.7BA4F1A91@druid.net>
Permalink:  ../20010530011951.7BA4F1A91@druid.net/
Also on:    postgresql.org/message-id/20010530011951.7BA4F1A91@druid.net

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: darcy@druid.net, pma@commandprompt.com
  Subject: Re: Shortcut?
  In-Reply-To: <20010530011951.7BA4F1A91@druid.net>

* 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