deeejay

psql - md5 hash entire row

Aug 5th, 2016
656
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. SELECT md5(CAST(c.* AS text)) AS md5, c.*
  2.     FROM claims_master c
  3.  
  4.  
  5. MD5(ARRAY[company_id, membid, memb_keyid, lastnm, firstnm, hpcode, option, hpfromdt::text, opfromdt::text, opthrudt::text, pcp, pcp_keyid, birth::text, sex, ethnicity, street, street2, city, state, zip::text, phone, language, rlship::text, othcov::text, othname, field27, option_aid_code]::text) AS hash
Advertisement