head	1.5;
access;
symbols
	REL7_2_8:1.4
	REL7_2_7:1.4
	REL7_2_6:1.4
	REL7_2_5:1.4
	REL7_2_4:1.4
	REL7_2_3:1.4
	REL7_2_STABLE:1.4.0.6
	REL7_2:1.4
	REL7_2_RC2:1.4
	REL7_2_RC1:1.4
	REL7_2_BETA5:1.4
	REL7_2_BETA4:1.4
	REL7_2_BETA3:1.4
	REL7_2_BETA2:1.4
	REL7_2_BETA1:1.4
	REL7_1_2:1.4
	REL7_1_STABLE:1.4.0.4
	REL7_1_BETA:1.4
	REL7_1_BETA3:1.4
	REL7_1_BETA2:1.4
	REL7_1:1.4
	REL7_0_PATCHES:1.4.0.2
	REL7_0:1.4
	REL6_5_PATCHES:1.1.0.2;
locks; strict;
comment	@# @;


1.5
date	2002.08.30.16.48.43;	author momjian;	state dead;
branches;
next	1.4;

1.4
date	99.10.30.16.18.50;	author momjian;	state Exp;
branches;
next	1.3;

1.3
date	99.10.30.16.01.13;	author momjian;	state dead;
branches;
next	1.2;

1.2
date	99.09.20.22.30.47;	author scrappy;	state Exp;
branches;
next	1.1;

1.1
date	99.09.13.18.47.30;	author momjian;	state dead;
branches
	1.1.2.1;
next	;

1.1.2.1
date	99.09.13.18.47.30;	author momjian;	state Exp;
branches;
next	;


desc
@@


1.5
log
@Remove pgaccess from CVS.  It has its own home now.
@
text
@.pgaw:Help.f.t insert end "DELETE" {bold} " emoves rows which satisfy the WHERE condition, from the specified table.  \
If the condition is absent, the effect is to delete all rows in the table. The result is a valid, but empty table.  \
You must have write access to the table in order to modify it, as well as read access to any table whose values are read in the condition. 

" {} "Synopsis" {bold} "
" {} "
   DELETE FROM table \[ WHERE condition \]
   
" {code} "Usage" {bold} "

Remove all films but musicals: 
" {} "
DETETE FROM films WHERE kind <> 'Musical';

SELECT * FROM films;

code |title                    |did| date_prod|kind      |len
-----+-------------------------+---+----------+----------+------
UA501|West Side Story          |105|1961-01-03|Musical   | 02:32
TC901|The King and I           |109|1956-08-11|Musical   | 02:13
WD101|Bed Knobs and Broomsticks|111|          |Musical   | 01:57
(3 rows)
  

Clear the table films: 

DELETE FROM films;
   
SELECT * FROM films;
code|title|did|date_prod|kind|len
----+-----+---+---------+----+---
(0 rows)

" {code} "Compatibility" {bold} "

SQL92 

SQL92 allows a positioned DELETE statement: 

DELETE FROM table WHERE CURRENT OF cursor
   

where cursor identifies an open cursor. Interactive cursors in Postgres are read-only. "
@


1.4
log
@Add 0.98.
@
text
@@


1.3
log
@Remove 0.96 for update to 0.98
@
text
@@


1.2
log
@
bring it all into -current again
@
text
@@


1.1
log
@file delete.hlp was initially added on branch REL6_5_PATCHES.
@
text
@d1 43
@


1.1.2.1
log
@Update pgaccess 0.98
@
text
@a0 43
.pgaw:Help.f.t insert end "DELETE" {bold} " emoves rows which satisfy the WHERE condition, from the specified table.  \
If the condition is absent, the effect is to delete all rows in the table. The result is a valid, but empty table.  \
You must have write access to the table in order to modify it, as well as read access to any table whose values are read in the condition. 

" {} "Synopsis" {bold} "
" {} "
   DELETE FROM table \[ WHERE condition \]
   
" {code} "Usage" {bold} "

Remove all films but musicals: 
" {} "
DETETE FROM films WHERE kind <> 'Musical';

SELECT * FROM films;

code |title                    |did| date_prod|kind      |len
-----+-------------------------+---+----------+----------+------
UA501|West Side Story          |105|1961-01-03|Musical   | 02:32
TC901|The King and I           |109|1956-08-11|Musical   | 02:13
WD101|Bed Knobs and Broomsticks|111|          |Musical   | 01:57
(3 rows)
  

Clear the table films: 

DELETE FROM films;
   
SELECT * FROM films;
code|title|did|date_prod|kind|len
----+-----+---+---------+----+---
(0 rows)

" {code} "Compatibility" {bold} "

SQL92 

SQL92 allows a positioned DELETE statement: 

DELETE FROM table WHERE CURRENT OF cursor
   

where cursor identifies an open cursor. Interactive cursors in Postgres are read-only. "
@
