Re: newbie - syntax question

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: newbie - syntax question
Дата
Msg-id 20020509174129.D25908-100000@megazone23.bigpanda.com
обсуждение исходный текст
Ответ на newbie - syntax question  ("McCaffity, Ray (Contractor)" <McCaffityR@epg.lewis.army.mil>)
Список 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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: trouble with (lack of) indexing
Следующее
От: "Nigel J. Andrews"
Дата:
Сообщение: Re: trouble with (lack of) indexing