Join columns

From: Przemysław Słupkowski <przemyslaw(dot)slupkowski(at)euro(dot)coig(dot)pl>
To: "Lista dyskusyjna pgsql-sql" <pgsql-sql(at)postgresql(dot)org>
Subject: Join columns
Date: 2004-06-25 13:26:34
Message-ID: 002701c45ab8$092d69f0$880f10ac@win.coig.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Hi
How can I generate md5 chcecksum for a row in table. I have 47 columns in table and I want to generate chceck sum to check is integrity od data.
I want to do something like this

select md5((idTowBK || SKDK || SKDT || SKGR || SKIR || SKKL || SKKR || SKLM || SKNZ || SKOP || SKPR)::varchar)
from FARM_BKam limit 10

and its works :-)
But when I increase number of columns higher than 12 then return's null string

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Markus Bertheau 2004-06-25 14:18:01 Re: question about which column(s) are the right foreign key
Previous Message Achilleus Mantzios 2004-06-25 12:56:17 Re: Join columns