Re: Join columns - Mailing list pgsql-sql

From Achilleus Mantzios
Subject Re: Join columns
Date
Msg-id Pine.LNX.4.44.0406251554330.9135-100000@matrix.gatewaynet.com
Whole thread Raw
In response to Join columns  (Przemysław Słupkowski<przemyslaw.slupkowski@euro.coig.pl>)
List pgsql-sql
O kyrios Przemys³aw S³upkowski egrapse stis Jun 25, 2004 :

> 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
checkis 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

Maybe use coalesce to deal with nulls.



> 
> 
> 

-- 
-Achilleus



pgsql-sql by date:

Previous
From: Przemysław Słupkowski
Date:
Subject: Join columns
Next
From: Markus Bertheau
Date:
Subject: Re: question about which column(s) are the right foreign key