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