Re: string function

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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


---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
      choose an index scan if your joining column's datatypes do not
      match

[Index of Archives]     [Postgresql General]     [Postgresql Admin]     [PHP Users]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Databases]     [Yosemite Backpacking]     [Postgresql Jobs]

  Powered by Linux