Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
2ef8d458
Commit
2ef8d458
authored
Mar 16, 2002
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
manual.texi Misc. minor cleanups.
manual.texi clarify sentence. Docs/manual.texi: Misc. minor cleanups.
parent
ab28b127
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
12 deletions
+13
-12
Docs/manual.texi
Docs/manual.texi
+13
-12
No files found.
Docs/manual.texi
View file @
2ef8d458
...
@@ -33956,7 +33956,7 @@ The first multi table delete format is supported starting from MySQL 4.0.0.
...
@@ -33956,7 +33956,7 @@ The first multi table delete format is supported starting from MySQL 4.0.0.
The second multi table delete format is supported starting from MySQL 4.0.2.
The second multi table delete format is supported starting from MySQL 4.0.2.
The idea is that only matching rows from the tables listed
The idea is that only matching rows from the tables listed
@strong{before} the @code{FROM} or before the @code{USING} clause
is
@strong{before} the @code{FROM} or before the @code{USING} clause
are
deleted. The effect is that you can delete rows from many tables at the
deleted. The effect is that you can delete rows from many tables at the
same time and also have additional tables that are used for searching.
same time and also have additional tables that are used for searching.
...
@@ -34015,10 +34015,10 @@ are:
...
@@ -34015,10 +34015,10 @@ are:
@itemize @bullet
@itemize @bullet
@item
@item
Truncate
s does a drop and re-create of
the table, which is much faster
Truncate
operations drop and re-create
the table, which is much faster
than deleting rows one by one.
than deleting rows one by one.
@item
@item
Not transaction-safe;
Y
ou will get an error if you have an active
Not transaction-safe;
y
ou will get an error if you have an active
transaction or an active table lock.
transaction or an active table lock.
@item
@item
Doesn't return the number of deleted rows.
Doesn't return the number of deleted rows.
...
@@ -34053,15 +34053,16 @@ the old record is deleted before the new record is inserted.
...
@@ -34053,15 +34053,16 @@ the old record is deleted before the new record is inserted.
@xref{INSERT, , @code{INSERT}}.
@xref{INSERT, , @code{INSERT}}.
In other words, you can't access the values of the old row from a
In other words, you can't access the values of the old row from a
@code{REPLACE} statement. In some old MySQL version
it looked
@code{REPLACE} statement. In some old MySQL version
s it appeared that
like
you could do this, but that was a bug that has been corrected.
you could do this, but that was a bug that has been corrected.
When
one uses
a @code{REPLACE} command, @code{mysql_affected_rows()}
When
you use
a @code{REPLACE} command, @code{mysql_affected_rows()}
will return 2 if the new row replaced an
d old row. This is because in
will return 2 if the new row replaced an
old row. This is because
this case
one row was inserted and then the duplicate was deleted.
one row was inserted and then the duplicate was deleted.
The above makes it easy to check if @code{REPLACE} added or replaced a
This fact makes it easy to determine whether @code{REPLACE} added
row.
or replaced a row: check whether the affected-rows value is 1 (added)
or 2 (replaced).
@node LOAD DATA, DO, REPLACE, Data Manipulation
@node LOAD DATA, DO, REPLACE, Data Manipulation
...
@@ -36307,8 +36308,8 @@ If a table changes (@code{INSERT}, @code{UPDATE}, @code{DELETE},
...
@@ -36307,8 +36308,8 @@ If a table changes (@code{INSERT}, @code{UPDATE}, @code{DELETE},
then all cached queries that used this table (possibly through a
then all cached queries that used this table (possibly through a
@code{MRG_MyISAM} table!) become invalid and are removed from the cache.
@code{MRG_MyISAM} table!) become invalid and are removed from the cache.
Changed transactional @code{InnoDB} tables will be invalidated on
Transactional @code{InnoDB} tables that have been changed will be invalidated
@code{COMMIT}
.
when a @code{COMMIT} is performed
.
A query cannot be cached if it contains one of the functions:
A query cannot be cached if it contains one of the functions:
@multitable @columnfractions .25 .25 .25 .25
@multitable @columnfractions .25 .25 .25 .25
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment