Re: md5 hash on table row

From: Michael Fuhr <mike(at)fuhr(dot)org>
To: Jon Lapham <lapham(at)jandr(dot)org>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: md5 hash on table row
Date: 2005-11-02 17:23:20
Message-ID: 20051102172319.GA12333@winnie.fuhr.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, Nov 02, 2005 at 02:49:57PM -0200, Jon Lapham wrote:
> Michael Fuhr wrote:
> >test=> SELECT id, foo FROM foo;
> > id | foo
> >----+---------------------------------------------------------
> > 1 | (1,123,"this is a test",2005-11-02,t,"\\000\\001\\002")
>
> Perfect! Wow, in all these years of using PostgreSQL, I did not know
> you can "SELECT tablename FROM tablename".

It only works in 8.0 and later.

> PS: Does anyone know if this very portable to other databases?

Dunno, but it doesn't work in MySQL 5.0.15.

--
Michael Fuhr

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Michael Fuhr 2005-11-02 17:26:14 Re: md5 hash on table row
Previous Message Tom Lane 2005-11-02 17:18:15 Re: md5 hash on table row