From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | darcy(at)druid(dot)net (D'Arcy J(dot)M(dot) Cain) |
Cc: | Phuong Ma <pma(at)commandprompt(dot)com>, Postgres SQL <pgsql-sql(at)postgresql(dot)org> |
Subject: | Re: Shortcut? |
Date: | 2001-05-30 04:21:38 |
Message-ID: | 20797.991196498@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
darcy(at)druid(dot)net (D'Arcy J.M. Cain) writes:
> Thus spake Phuong Ma
>> 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';
Yes: you must mention a table in FROM to make its field names available
for reference without qualification. I think we may have tightened that
in recent releases --- the current political climate is to discourage
use of tables without FROM, since SQL92 doesn't allow it at all.
> Can you tell me where you found that example. I couldn't find it in the
> documentation sources.
A quick glimpse shows that we still have it in ref/select.sgml (try
'Westward' instead of 'Westwood'). Will fix.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Kapil Tilwani | 2001-05-30 06:13:19 | Re: [GENERAL] |
Previous Message | D'Arcy J.M. Cain | 2001-05-30 01:19:51 | Re: Shortcut? |