Thread: casting varchar to numeric

casting varchar to numeric

From
"Alex K."
Date:
Is there any way to cast a varchar value to numeric?

I just found out that neither an implicit nor an explicit cast is permitted
when trying to convert from varchar to numeric, but I need to move the
values from that varchar field (which are all numeric characters, by the
way) into a numeric field.  I'd prefer doing this inside Postgres, as
opposed to scripting it using PERL or something...

Thanks for any helpful advice (helpful advice does NOT include 'You should
have just created a numeric field in the first place').

=)

Alex K.