Re: string function - Mailing list pgsql-php

From Frank Bax
Subject Re: string function
Date
Msg-id 4743ABD2.2010009@sympatico.ca
Whole thread Raw
In response to string function  ("gunartha" <gunartha.nyoman@ptjas.co.id>)
List 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


pgsql-php by date:

Previous
From: "gunartha"
Date:
Subject: string function
Next
From: Dane Springmeyer
Date:
Subject: Normalization tools for postgres?