pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Weiping He <laser@zhengmai.com.cn>
To: pgsql-docs@postgresql.org
Subject: doc question about column name alias
Date: Mon, 25 Jun 2001 22:38:46 +0800
Message-ID: <3B374CF6.C1AB82F0@zhengmai.com.cn> (raw)

Hi,
    I'm translating 7.1.2's doc to Chinese, and got one question while
doing these,
in queries.sgml line 795:

SELECT a AS b FROM table1 ORDER BY a;

I think it should be:

SELECT a AS b FROM table1 ORDER BY b;

but from the context:"   References to column names in the FROM clause
that are renamed in the select list are also allowed:"
it seems the original is correct. Am I misunderstood? How the SQL
standard saids?
Thanks.

    regards    laser





view thread (5+ messages)  latest in thread

Message-ID: <3B374CF6.C1AB82F0@zhengmai.com.cn>
Permalink:  ../3B374CF6.C1AB82F0@zhengmai.com.cn/
Also on:    postgresql.org/message-id/3B374CF6.C1AB82F0@zhengmai.com.cn

 · 

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-docs@postgresql.org
  Cc: laser@zhengmai.com.cn
  Subject: Re: doc question about column name alias
  In-Reply-To: <3B374CF6.C1AB82F0@zhengmai.com.cn>

* 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