Re: select 3 characters

Поиск
Список
Период
Сортировка
От Josh Berkus
Тема Re: select 3 characters
Дата
Msg-id 200305151358.27937.josh@agliodbs.com
обсуждение исходный текст
Ответ на select 3 characters  ("Cyber Join" <cyberjoin@linuxmail.org>)
Ответы Re: select 3 characters
Список pgsql-sql
CJ -

You might want to join the NOVICE list and post this kind of question there,
should you have more.

> Hi I need select the first 3 characters from a table
>
> I try this but doesn't work
>
> "SELECT left(data,3) AS value FROM table;"
>
> i see the left function doesn't work what is the similar function in
postgresql

SUBSTR(data, 1, 3)

See "Functions And Operators" in the online docs for more.

--
-Josh BerkusAglio Database SolutionsSan Francisco



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

Предыдущее
От: mdc@keko.com.ar
Дата:
Сообщение: installation problem
Следующее
От: Richard Huxton
Дата:
Сообщение: Re: select 3 characters