PostgreSQL
 sql >> Database >  >> RDS >> PostgreSQL

Come generare un hash del set di risultati in Postgress?

Potresti usare md5:

 log_table="
SELECT 
  md5(column1 || column2 || column3) AS hash,
  column1, column2, column3
FROM log_table where to_char(timestamp, '$ts_format') = '$tx_moment'";