Casting from varchar to numeric - Mailing list pgsql-novice

Hi list,

Is there a way of casting from a varchar to a numeric type?

My problem consists of a varchar(10) that are all numeric.  They are telephone
numbers and I want to convert them during a select statement to (XXX)
XXX-XXXX

Anybody have any ideas?

Thanks

Tom

pgsql-novice by date:

Previous
From: gerry.smit@lombard.ca
Date:
Subject: Re: Answering my own question
Next
From: "Adam Erickson"
Date:
Subject: Re: Answering my own question