From: Frank Bax <fbax@sympatico.ca>
To: pgsql-php@postgresql.org
Subject: Re: string function
Date: Tue, 20 Nov 2007 22:53:54 -0500
Message-ID: <4743ABD2.2010009@sympatico.ca> (raw)
In-Reply-To: <014701c82c75$0d6fb6c0$0f0010b2@gunartha>
References: <014701c82c75$0d6fb6c0$0f0010b2@gunartha>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-php@postgresql.org
Cc: fbax@sympatico.ca
Subject: Re: string function
In-Reply-To: <4743ABD2.2010009@sympatico.ca>
References: <014701c82c75$0d6fb6c0$0f0010b2@gunartha> <4743ABD2.2010009@sympatico.ca>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox