From: | "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com> |
---|---|
To: | David Helgason <david(at)uti(dot)is> |
Cc: | Federico Balbi <fbalbi(at)cs(dot)utsa(dot)edu>, postgresql-general <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: checksum |
Date: | 2004-09-26 18:21:23 |
Message-ID: | 415708A3.6010003@commandprompt.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
David Helgason wrote:
>> I was wondering if PGSQL has a function similar to
>> binary_checksum() of
>> MS SQL Server 2000. It is pretty handy when it comes to compare rows of
>> data instead of having to write long boolean expressions.
>> binary_checksum() takes a list of fields and it returns an integer value
>> which sumarize the row content.
>
>
You could use the md5 function.... such as :
select md5(foo) from bar where baz = 2;
J
> On a similar note, I've found myself wanting an extended '=' operator
> meaning
> (a = b or (a is null and b is null))
>
> same goal of course, for more general comparisons...
>
> d.
--
Command Prompt, Inc., home of Mammoth PostgreSQL - S/ODBC and S/JDBC
Postgresql support, programming shared hosting and dedicated hosting.
+1-503-667-4564 - jd(at)commandprompt(dot)com - http://www.commandprompt.com
PostgreSQL Replicator -- production quality replication for PostgreSQL
From | Date | Subject | |
---|---|---|---|
Next Message | Federico Balbi | 2004-09-26 18:31:36 | Re: checksum |
Previous Message | David Helgason | 2004-09-26 18:16:52 | Re: checksum |