From: Josh Berkus <josh@agliodbs.com>
To: Cyber Join <cyberjoin@linuxmail.org>
To: pgsql-sql@postgresql.org
Subject: Re: select 3 characters
Date: Thu, 15 May 2003 13:58:27 -0700
Message-ID: <200305151358.27937.josh@agliodbs.com> (raw)
In-Reply-To: <20030515200526.31852.qmail@linuxmail.org>
References: <20030515200526.31852.qmail@linuxmail.org>
CJ -
You might want to join the NOVICE list and post this kind of question there,
should you have more.
> Hi I need select the first 3 characters from a table
>
> I try this but doesn't work
>
> "SELECT left(data,3) AS value FROM table;"
>
> i see the left function doesn't work what is the similar function in
postgresql
SUBSTR(data, 1, 3)
See "Functions And Operators" in the online docs for more.
--
-Josh Berkus
Aglio Database Solutions
San Francisco
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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: josh@agliodbs.com, cyberjoin@linuxmail.org
Subject: Re: select 3 characters
In-Reply-To: <200305151358.27937.josh@agliodbs.com>
* 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