Commit 2ef8d458 authored by unknown's avatar unknown

manual.texi Misc. minor cleanups.

manual.texi	clarify sentence.


Docs/manual.texi:
  Misc. minor cleanups.
parent ab28b127
...@@ -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
Truncates 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; You will get an error if you have an active Not transaction-safe; you 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 versions 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 and 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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment