Re: newbie - syntax question - Mailing list pgsql-general

From Stephan Szabo
Subject Re: newbie - syntax question
Date
Msg-id 20020509174129.D25908-100000@megazone23.bigpanda.com
Whole thread Raw
In response to newbie - syntax question  ("McCaffity, Ray (Contractor)" <McCaffityR@epg.lewis.army.mil>)
List pgsql-general
On Thu, 9 May 2002, McCaffity, Ray (Contractor) wrote:

> We are in the process of switching from Ingres II to Postgres,
> we use a lot of views, most of them seem to straight across without too
> many problems.  But some are a little more diffcult. Does anyone know
> the syntax, on how to do view aliasing in postgres?  Here is an example
> view script from ingres.  I've looked all through the PDF manuals, and I can
> create generic views, but these don't seem to work.  This one seems to fail
> with all of the "=" .

> select distinct
>        uid              = 'c' + trim(char(m.ctc_uid)),
>        command          = e.msg_command,

I think you probably want something like
e.msg_command AS command,


pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: trouble with (lack of) indexing
Next
From: "Nigel J. Andrews"
Date:
Subject: Re: trouble with (lack of) indexing