Skip site navigation (1) Skip section navigation (2)

Re: "DELETE FROM" protection

From: Dave Ewart <Dave(dot)Ewart(at)cancer(dot)org(dot)uk>
To: pgsql-admin(at)postgresql(dot)org
Subject: Re: "DELETE FROM" protection
Date: 2004-02-20 10:56:07
Message-ID: 20040220105607.GM3555@nemesis.ox.icnet.uk (view raw or flat)
Thread:
Lists: pgsql-admin
On Friday, 20.02.2004 at 10:12 +0000, Matt Clark wrote:

> > So now with pgsql, when I am typing "DELETE FROM...." until I get to
> > the "WHERE" part of the statement, I get a little nervous because I
> > know hitting Enter by mistake will wipe out that table.  [...]

How about typing the "WHERE" part of the statement first, then
'left-arrowing' back to the start of the statement and do "DELETE FROM
..." *last*?

Dave.
-- 
Dave Ewart
Dave(dot)Ewart(at)cancer(dot)org(dot)uk
Computing Manager, Epidemiology Unit, Oxford
Cancer Research UK
PGP: CC70 1883 BD92 E665 B840 118B 6E94 2CFD 694D E370


In response to

Responses

pgsql-admin by date

Next:From: Olivier HubautDate: 2004-02-20 11:14:31
Subject: Re: ANALYZE crashes randomly
Previous:From: Matt ClarkDate: 2004-02-20 10:12:37
Subject: Re: "DELETE FROM" protection

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group