Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search archives
  Advanced Search

Re: string function


  • From: Frank Bax <fbax(at)sympatico(dot)ca>
  • To: pgsql-php(at)postgresql(dot)org
  • Subject: Re: string function
  • Date: Tue, 20 Nov 2007 22:53:54 -0500
  • Message-id: <4743ABD2.2010009@sympatico.ca> <text/plain>

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




Home | Main Index | Thread Index

Privacy Policy | About PostgreSQL
Copyright © 1996 – 2012 PostgreSQL Global Development Group