TRIM Function in Vertica

Moderator: NorbertKrupa

Post Reply
geonellickan
Newbie
Newbie
Posts: 1
Joined: Thu Apr 14, 2016 3:34 am

TRIM Function in Vertica

Post by geonellickan » Thu Apr 14, 2016 3:48 am

Hi All

I was using a function like this in one of my SQL query [Trim(Column1,'"')]..

But when I did a vertica upgrade, this function is throwing me some error.Could you please let me know what the above function exactly do and also the corresponding function for replacing the same

Thanks

lveski
Newbie
Newbie
Posts: 2
Joined: Fri Sep 27, 2013 2:54 pm

Re: TRIM Function in Vertica

Post by lveski » Thu Apr 14, 2016 11:43 am

Hi

From documentation:
https://my.vertica.com/docs/7.2.x/HTML/ ... g/TRIM.htm

In previous versions TRIM worked also like you pointed out, but starting from version 7 you should use: Trim('"' from Column1)

Regards,
Lauri

Post Reply

Return to “General”