conversion

From: "Nathan Suderman" <nathan(at)pollstar(dot)com>
To: <pgsql-general(at)postgresql(dot)org>
Subject: conversion
Date: 2000-12-07 21:16:47
Message-ID: sa2f8dcd.060@pollstar.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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)). Is there a way I am overlooking? basically I am trying to sum a field that contains all numbers but is set up as varchar.

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2000-12-07 21:16:48 Re: Bug? Insert into new Datatype 7.0.x
Previous Message Paul 2000-12-07 20:46:21 [HACKERS] Oracle-compatible lpad/rpad behavior