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
dc618189
Commit
dc618189
authored
May 03, 2001
by
heikki@donna.mysql.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
manual.texi Update MySQL manual about the syntax change to ...LOCK IN SHARE MODE
parent
59ed711e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
Docs/manual.texi
Docs/manual.texi
+4
-4
No files found.
Docs/manual.texi
View file @
dc618189
...
@@ -19769,7 +19769,7 @@ SELECT [STRAIGHT_JOIN] [SQL_SMALL_RESULT] [SQL_BIG_RESULT] [SQL_BUFFER_RESULT]
...
@@ -19769,7 +19769,7 @@ SELECT [STRAIGHT_JOIN] [SQL_SMALL_RESULT] [SQL_BIG_RESULT] [SQL_BUFFER_RESULT]
[ORDER BY @{unsigned_integer | col_name | formula@} [ASC | DESC] ,...]
[ORDER BY @{unsigned_integer | col_name | formula@} [ASC | DESC] ,...]
[LIMIT [offset,] rows]
[LIMIT [offset,] rows]
[PROCEDURE procedure_name]
[PROCEDURE procedure_name]
[FOR UPDATE | IN SHARE MODE]]
[FOR UPDATE |
LOCK
IN SHARE MODE]]
@end example
@end example
@c help end
@c help end
...
@@ -24976,10 +24976,10 @@ happen that meanwhile some other user has deleted the parent row
...
@@ -24976,10 +24976,10 @@ happen that meanwhile some other user has deleted the parent row
from the table @code{PARENT}, and you are not aware of that.
from the table @code{PARENT}, and you are not aware of that.
The solution is to perform the @code{SELECT} in a locking
The solution is to perform the @code{SELECT} in a locking
mode, @code{IN SHARE MODE}.
mode, @code{
LOCK
IN SHARE MODE}.
@example
@example
SELECT * FROM PARENT WHERE NAME = 'Jones' IN SHARE MODE;
SELECT * FROM PARENT WHERE NAME = 'Jones'
LOCK
IN SHARE MODE;
@end example
@end example
Performing a read in share mode means that we read the latest
Performing a read in share mode means that we read the latest
...
@@ -25078,7 +25078,7 @@ table.
...
@@ -25078,7 +25078,7 @@ table.
@code{SELECT ... FROM ...} : this is a consistent read, reading a
@code{SELECT ... FROM ...} : this is a consistent read, reading a
snapshot of the database and setting no locks.
snapshot of the database and setting no locks.
@item
@item
@code{SELECT ... FROM ... IN SHARE MODE} : sets shared next-key locks
@code{SELECT ... FROM ...
LOCK
IN SHARE MODE} : sets shared next-key locks
on all index records the read encounters.
on all index records the read encounters.
@item
@item
@code{SELECT ... FROM ... FOR UPDATE} : sets exclusive next-key locks
@code{SELECT ... FROM ... FOR UPDATE} : sets exclusive next-key locks
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