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
0b3ab589
Commit
0b3ab589
authored
Feb 15, 2002
by
arjen@co3064164-a.bitbike.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improved USE INDEX / IGNORE INDEX info.
parent
45c02220
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
Docs/manual.texi
Docs/manual.texi
+13
-0
No files found.
Docs/manual.texi
View file @
0b3ab589
...
@@ -24779,6 +24779,8 @@ and check the query with @code{EXPLAIN} again. @xref{ALTER TABLE}.
...
@@ -24779,6 +24779,8 @@ and check the query with @code{EXPLAIN} again. @xref{ALTER TABLE}.
To see what indexes a table has, use @code{SHOW INDEX FROM tbl_name}.
To see what indexes a table has, use @code{SHOW INDEX FROM tbl_name}.
@item key
@item key
@findex USE INDEX
@findex IGNORE INDEX
The @code{key} column indicates the key that MySQL actually
The @code{key} column indicates the key that MySQL actually
decided to use. The key is @code{NULL} if no index was chosen. If
decided to use. The key is @code{NULL} if no index was chosen. If
MySQL chooses the wrong index, you can probably force
MySQL chooses the wrong index, you can probably force
...
@@ -32810,6 +32812,13 @@ because the column value may not yet be determined when the
...
@@ -32810,6 +32812,13 @@ because the column value may not yet be determined when the
The @code{FROM table_references} clause indicates the tables from which to
The @code{FROM table_references} clause indicates the tables from which to
retrieve rows. If you name more than one table, you are performing a
retrieve rows. If you name more than one table, you are performing a
join. For information on join syntax, see @ref{JOIN, , @code{JOIN}}.
join. For information on join syntax, see @ref{JOIN, , @code{JOIN}}.
For each table specified, you may optionally specify an alias, as well as
make a suggestion to the optimiser what index to use or ignore.
@findex USE INDEX
@findex IGNORE INDEX
@example
table_name [[AS] alias] [USE INDEX (key_list)] [IGNORE INDEX (key_list)]
@end example
@item
@item
You can refer to a column as @code{col_name}, @code{tbl_name.col_name}, or
You can refer to a column as @code{col_name}, @code{tbl_name.col_name}, or
...
@@ -33099,6 +33108,8 @@ table_reference NATURAL [RIGHT [OUTER]] JOIN table_reference
...
@@ -33099,6 +33108,8 @@ table_reference NATURAL [RIGHT [OUTER]] JOIN table_reference
@end example
@end example
Where @code{table_reference} is defined as:
Where @code{table_reference} is defined as:
@findex USE INDEX
@findex IGNORE INDEX
@example
@example
table_name [[AS] alias] [USE INDEX (key_list)] [IGNORE INDEX (key_list)]
table_name [[AS] alias] [USE INDEX (key_list)] [IGNORE INDEX (key_list)]
@end example
@end example
...
@@ -33194,6 +33205,8 @@ cases where the join optimiser puts the tables in the wrong order.
...
@@ -33194,6 +33205,8 @@ cases where the join optimiser puts the tables in the wrong order.
@item
@item
@cindex hints
@cindex hints
@findex USE INDEX
@findex IGNORE INDEX
As of MySQL Version 3.23.12, you can give hints about which
As of MySQL Version 3.23.12, you can give hints about which
index MySQL should use when retrieving information from a
index MySQL should use when retrieving information from a
table. This is useful if @code{EXPLAIN} shows that MySQL is
table. This is useful if @code{EXPLAIN} shows that MySQL is
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