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

Re: string function

From: Frank Bax <fbax(at)sympatico(dot)ca>
To: pgsql-php(at)postgresql(dot)org
Subject: Re: string function
Date: 2007-11-21 03:53:54
Message-ID: 4743ABD2.2010009@sympatico.ca (view raw or flat)
Thread:
Lists: pgsql-php
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


In response to

pgsql-php by date

Next:From: Richard Broersma JrDate: 2007-11-21 04:33:56
Subject: Re: VB ADODB .Open failing
Previous:From: Finn LassenDate: 2007-11-21 00:54:52
Subject: VB ADODB .Open failing

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group