Re: Postgres and alias

Поиск
Список
Период
Сортировка
От Stelios Sfakianakis
Тема Re: Postgres and alias
Дата
Msg-id 0C19E19D-F37A-488D-A1F3-370B8BB3523C@gmail.com
обсуждение исходный текст
Ответ на Postgres and alias  ("Fontana Daniel C \(Desartec S.R.L.\)" <desartecsrl@gmail.com>)
Ответы Postgres and alias  ("Fontana Daniel C \(Desartec S.R.L.\)" <desartecsrl@gmail.com>)
Список pgsql-general
Hmm, how about:

SELECT substr (ls_number, 3, 3)
FROM (VALUES('1234567890')) as t(ls_number);

St.

> On 27 Aug 2020, at 18:55, Fontana Daniel C (Desartec S.R.L.) <desartecsrl@gmail.com> wrote:
>
> Hi, I am migrating a database from Sybase to PostgreSql 12.
>
> This select in sybase works for me, but with postgresql it accuses me
> "THERE IS NO COLUMN ls_numero"
>
> select '1234567890' as ls_number,
>                  substr (ls_number, 3, 3);
>
> Is it possible to get information from an alias in postgresql? how would the
> code be?
>
>
>
>




В списке pgsql-general по дате отправления:

Предыдущее
От: "Fontana Daniel C \(Desartec S.R.L.\)"
Дата:
Сообщение: Postgres and alias
Следующее
От: Paul Förster
Дата:
Сообщение: Re: Postgres and alias