Length of a string

Moderator: NorbertKrupa

Post Reply
Jess.mic
Newbie
Newbie
Posts: 15
Joined: Tue Jun 11, 2013 11:02 pm

Length of a string

Post by Jess.mic » Mon Jul 15, 2013 9:59 pm

How do we find out the length of string??

User avatar
nnani
Master
Master
Posts: 302
Joined: Fri Apr 13, 2012 6:28 am
Contact:

Re: Length of a sting

Post by nnani » Tue Jul 16, 2013 7:24 am

Hello Jess

Vertica provides a function to count the length of a string
The function is "length"

Code: Select all

nnani=> select length('jess.mic') from dual;
 length
--------
      8
(1 row)
Hope this helps.
nnani........
Long way to go

You can check out my blogs at vertica-howto

Post Reply

Return to “New to Vertica SQL”