Skip site navigation (1) Skip section navigation (2)

Casting

From: Thomas SMETS <tsmets(at)altern(dot)org>
To: psql novice <pgsql-novice(at)postgresql(dot)org>, psql sql <pgsql-sql(at)postgresql(dot)org>
Subject: Casting
Date: 2001-01-05 00:31:26
Message-ID: 3A5515DE.52F2DB7B@altern.org (view raw or flat)
Thread:
Lists: pgsql-novicepgsql-sql

Hi,

In pgsql
	
I'm removing charaters from a String which should be numbers.
I then want to make calculations on these numbers (calculate the ISBN
number).

Do I have to cast the char into int's before I can do the calulations.

Also I looked in the User manual but could not find the modulo function
where is it ?

tx,

Thomas,













-- 
Thu Jan  4 20:19:03 CET 2001

Thomas SMETS                        e-mail : tsmets(at)altern(dot)org
Av. de la Brabançonne 133 / 3       Tel. : +32 (0)2 742. 05. 94.
1030 Bruxelles
======= Quote of the Day =========
Jealousy is all the fun you think they have.
========= End of Quote ===========

Responses

pgsql-novice by date

Next:From: Thomas SMETSDate: 2001-01-05 00:35:04
Subject: Debugging ?
Previous:From: Fernando M. MarescaDate: 2001-01-05 00:20:48
Subject: Re: well, this is a newbie list...

pgsql-sql by date

Next:From: Thomas SMETSDate: 2001-01-05 00:35:04
Subject: Debugging ?
Previous:From: Peter EisentrautDate: 2001-01-04 23:14:29
Subject: Re: psql -f option

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group