Re: conversion - Mailing list pgsql-general

From Tom Lane
Subject Re: conversion
Date
Msg-id 2347.976644023@sss.pgh.pa.us
Whole thread Raw
In response to conversion  ("Nathan Suderman" <nathan@pollstar.com>)
List pgsql-general
"Nathan Suderman" <nathan@pollstar.com> writes:
> how can I convert varchar to int?  I can not seem to cast the type
> (::int2) and there are no conversion functions in the docs
> (int(varchar)).

What Postgres version are you using?  This works fine for me in 7.0
and later...

            regards, tom lane

pgsql-general by date:

Previous
From: Dmitriy Agafonov
Date:
Subject: performance : index selection
Next
From: Bruce Momjian
Date:
Subject: Re: manuals