Re: [SQL] Where is the String Length function?

From: Aleksey Dashevsky <postgres(at)luckynet(dot)co(dot)il>
To: Trinh Hoai Nhan <nhan(at)samart(dot)co(dot)th>
Cc: "pgsql-sql(at)postgreSQL(dot)org" <pgsql-sql(at)postgreSQL(dot)org>
Subject: Re: [SQL] Where is the String Length function?
Date: 1998-06-30 16:53:51
Message-ID: Pine.LNX.3.96.SK.980630195312.11328A-100000@kesha.luckynet.co.il
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Try length function:
userbase=> select length(cast ('123456' as text));
length
------
6
(1 row)

On Tue, 30 Jun 1998, Trinh Hoai Nhan wrote:

> It am a bit ashamed asking this, but I could not find a pgsql function
> that returns length of a text. Would anybody give me an advice?
>
> Thank you in advance.
> Trinh H. Nhan.
>
>

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Marcio Macedo 1998-07-01 09:59:47 Help on Converting data types
Previous Message Trinh Hoai Nhan 1998-06-30 16:24:20 Where is the String Length function?