From: | darcy(at)druid(dot)net (D'Arcy J(dot)M(dot) Cain) |
---|---|
To: | Phuong Ma <pma(at)commandprompt(dot)com> |
Cc: | Postgres SQL <pgsql-sql(at)postgresql(dot)org> |
Subject: | Re: Shortcut? |
Date: | 2001-05-30 01:19:51 |
Message-ID: | 20010530011951.7BA4F1A91@druid.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
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(at){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.
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2001-05-30 04:21:38 | Re: Shortcut? |
Previous Message | Grant | 2001-05-30 01:07:16 | Re: batch file |