Re: select 3 characters

From: Josh Berkus <josh(at)agliodbs(dot)com>
To: "Cyber Join" <cyberjoin(at)linuxmail(dot)org>, pgsql-sql(at)postgresql(dot)org
Subject: Re: select 3 characters
Date: 2003-05-15 20:58:27
Message-ID: 200305151358.27937.josh@agliodbs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

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

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Richard Huxton 2003-05-15 21:27:23 Re: select 3 characters
Previous Message mdc 2003-05-15 20:23:24 installation problem