~ubuntu-branches/ubuntu/precise/mysql-5.1/precise

« back to all changes in this revision

Viewing changes to man/ndb_delete_all.1

  • Committer: Bazaar Package Importer
  • Author(s): Norbert Tretkowski
  • Date: 2010-03-17 14:56:02 UTC
  • Revision ID: james.westby@ubuntu.com-20100317145602-x7e30l1b2sb5s6w6
Tags: upstream-5.1.45
ImportĀ upstreamĀ versionĀ 5.1.45

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
'\" t
 
2
.\"     Title: \fBndb_delete_all\fR
 
3
.\"    Author: [FIXME: author] [see http://docbook.sf.net/el/author]
 
4
.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
 
5
.\"      Date: 03/01/2010
 
6
.\"    Manual: MySQL Database System
 
7
.\"    Source: MySQL 5.1
 
8
.\"  Language: English
 
9
.\"
 
10
.TH "\FBNDB_DELETE_ALL\FR" "1" "03/01/2010" "MySQL 5\&.1" "MySQL Database System"
 
11
.\" -----------------------------------------------------------------
 
12
.\" * set default formatting
 
13
.\" -----------------------------------------------------------------
 
14
.\" disable hyphenation
 
15
.nh
 
16
.\" disable justification (adjust text to left margin only)
 
17
.ad l
 
18
.\" -----------------------------------------------------------------
 
19
.\" * MAIN CONTENT STARTS HERE *
 
20
.\" -----------------------------------------------------------------
 
21
.\" ndb_delete_all
 
22
.SH "NAME"
 
23
ndb_delete_all \- delete all rows from an NDB table
 
24
.SH "SYNOPSIS"
 
25
.HP \w'\fBndb_delete_all\ \fR\fB\fIoptions\fR\fR\ 'u
 
26
\fBndb_delete_all \fR\fB\fIoptions\fR\fR
 
27
.SH "DESCRIPTION"
 
28
.PP
 
29
\fBndb_delete_all\fR
 
30
deletes all rows from the given
 
31
NDB
 
32
table\&. In some cases, this can be much faster than
 
33
DELETE
 
34
or even
 
35
TRUNCATE TABLE\&.
 
36
.PP
 
37
\fBUsage\fR:
 
38
.sp
 
39
.if n \{\
 
40
.RS 4
 
41
.\}
 
42
.nf
 
43
ndb_delete_all \-c \fIconnect_string\fR \fItbl_name\fR \-d \fIdb_name\fR
 
44
.fi
 
45
.if n \{\
 
46
.RE
 
47
.\}
 
48
.PP
 
49
This deletes all rows from the table named
 
50
\fItbl_name\fR
 
51
in the database named
 
52
\fIdb_name\fR\&. It is exactly equivalent to executing
 
53
TRUNCATE \fIdb_name\fR\&.\fItbl_name\fR
 
54
in MySQL\&.
 
55
.PP
 
56
\fBAdditional Options\fR:
 
57
.sp
 
58
.RS 4
 
59
.ie n \{\
 
60
\h'-04'\(bu\h'+03'\c
 
61
.\}
 
62
.el \{\
 
63
.sp -1
 
64
.IP \(bu 2.3
 
65
.\}
 
66
.\" ndb_delete_all: transactional option
 
67
.\" transactional option: ndb_delete_all
 
68
\fB\-\-transactional\fR,
 
69
\fB\-t\fR
 
70
.sp
 
71
Use of this option causes the delete operation to be performed as a single transaction\&.
 
72
.if n \{\
 
73
.sp
 
74
.\}
 
75
.RS 4
 
76
.it 1 an-trap
 
77
.nr an-no-space-flag 1
 
78
.nr an-break-flag 1
 
79
.br
 
80
.ps +1
 
81
\fBWarning\fR
 
82
.ps -1
 
83
.br
 
84
With very large tables, using this option may cause the number of operations available to the cluster to be exceeded\&.
 
85
.sp .5v
 
86
.RE
 
87
.RE
 
88
.SH "COPYRIGHT"
 
89
.br
 
90
.PP
 
91
Copyright 2007-2008 MySQL AB, 2008-2010 Sun Microsystems, Inc.
 
92
.PP
 
93
This documentation is free software; you can redistribute it and/or modify it only under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License.
 
94
.PP
 
95
This documentation is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
 
96
.PP
 
97
You should have received a copy of the GNU General Public License along with the program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA or see http://www.gnu.org/licenses/.
 
98
.sp
 
99
.SH "SEE ALSO"
 
100
For more information, please refer to the MySQL Reference Manual,
 
101
which may already be installed locally and which is also available
 
102
online at http://dev.mysql.com/doc/.
 
103
.SH AUTHOR
 
104
Sun Microsystems, Inc. (http://www.mysql.com/).