Обсуждение: string function

Поиск
Список
Период
Сортировка

string function

От
"gunartha"
Дата:
Hi All,

Having a little issue, and can’t seem to figure it out!

Every time I try to run this select command I get this error:

select left(kd_aln,2) as code from airlin

the error msg is : function left(character varying, integer) does not exist

How to resolve this problem

Thank for your attention

Regards

Nyoman/Bali

Re: string function

От
Frank Bax
Дата:
gunartha wrote:
> select left(kd_aln,2) as code from airlin
>
> the error msg is : function left(character varying, integer) does not exist
>


For a complete list of string functions, look here:

http://www.postgresql.org/docs/8.2/interactive/functions-string.html

Perhaps you meant to use ...

select substr(kd_aln,1,2) as code from airlin