setting the where clause

From: johnf <jfabiani(at)yolo(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Subject: setting the where clause
Date: 2009-06-10 12:19:34
Message-ID: 200906100519.34171.jfabiani@yolo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Hi,
I'm am programming in python using the Dabo modules. www.dabodev.com if your
interested. Dabo is a framework that provides an easy way to build desktop
app's. To clear a data entry form. I have been setting the where clause
to "where 1=0". This of course retrieves 0 records and my form will display
nothing. It has been suggested that it might be better to set the where
clause to a primary key value that does not exist in the table "where PK
= -9999999".

I wonder what you guys think. How might it effect performance?
--
John Fabiani

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Tom Lane 2009-06-10 14:19:14 Re: setting the where clause
Previous Message Abbas 2009-06-10 06:02:51 Re: backup