pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ron Peterson <ron.peterson@yellowbank.com>
To: pgsql-sql@postgresql.org
Subject: Re: Looking for comments
Date: Tue, 02 Jan 2001 09:52:32 -0500
Message-ID: <3A51EB30.DD1A5FA5@yellowbank.com> (raw)
References: <3A4E8B1F.F5A29E3B@altern.org>

Thomas SMETS wrote:
> 
> <snip>
> ISBN's have a checkdigit; it would be sensible to provide a
> function to be used in a CHECK constraint to ensure that the
> ISBN is valid.
> </snip>

Here's a URL with more
information:http://www.isbn.spk-berlin.de/html/userman/usm4.htm.

I've written a similar algorithm in C to create and verify checksums for
eight digit codes.  The final code is then 9 digits.  I did this to help
create codes that are the same length as a social security number.  If
you'd like a copy, let me know.

-Ron-



view thread (5+ messages)  latest in thread

Message-ID: <3A51EB30.DD1A5FA5@yellowbank.com>
Permalink:  ../3A51EB30.DD1A5FA5@yellowbank.com/
Also on:    postgresql.org/message-id/3A51EB30.DD1A5FA5@yellowbank.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: ron.peterson@yellowbank.com
  Subject: Re: Looking for comments
  In-Reply-To: <3A51EB30.DD1A5FA5@yellowbank.com>
  References: <3A4E8B1F.F5A29E3B@altern.org> <3A51EB30.DD1A5FA5@yellowbank.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