pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: JT Kirkpatrick <jt-kirkpatrick@mpsllc.com>
To: 'pgsql-sql@hub.org' <pgsql-sql@hub.org>
Subject: convert text to number or number to text
Date: Wed, 21 Apr 1999 14:34:18 -0400
Message-ID: <01BE8C04.0A52A9E0.jt-kirkpatrick@mpsllc.com> (raw)

I'm trying to do an update query that compares an int4 field to a variable 
which I think contains a string (it was passed in through cgi.pm).  can I 
convert that string to an integer? - it will always be a number passing 
through.  I vaguely remember oracle having a to_number function - does 
postgres have something similar?

jt




view thread (3+ messages)  latest in thread

Message-ID: <01BE8C04.0A52A9E0.jt-kirkpatrick@mpsllc.com>
Permalink:  ../01BE8C04.0A52A9E0.jt-kirkpatrick@mpsllc.com/
Also on:    postgresql.org/message-id/01BE8C04.0A52A9E0.jt-kirkpatrick@mpsllc.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: jt-kirkpatrick@mpsllc.com, pgsql-sql@hub.org
  Subject: Re: convert text to number or number to text
  In-Reply-To: <01BE8C04.0A52A9E0.jt-kirkpatrick@mpsllc.com>
  References: <01BE8C04.0A52A9E0.jt-kirkpatrick@mpsllc.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox