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
caa27072
Commit
caa27072
authored
Jan 24, 2002
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Corrected typo: CALC_FOUND_ROWS should be SQL_CALC_FOUND_ROWS.
parent
3b9e18d9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
Docs/manual.texi
Docs/manual.texi
+5
-5
No files found.
Docs/manual.texi
View file @
caa27072
...
@@ -32351,18 +32351,18 @@ facilitate replication testing.
...
@@ -32351,18 +32351,18 @@ facilitate replication testing.
@findex FOUND_ROWS()
@findex FOUND_ROWS()
@findex LIMIT
@findex LIMIT
@item FOUND_ROWS()
@item FOUND_ROWS()
Returns the number of rows that the last @code{SELECT CALC_FOUND_ROWS ...}
Returns the number of rows that the last @code{SELECT
SQL_
CALC_FOUND_ROWS ...}
command would have returned, if wasn't restricted with @code{LIMIT}.
command would have returned, if wasn't restricted with @code{LIMIT}.
@example
@example
SELECT CALC_FOUND_ROWS * FROM table_name WHERE id > 100 LIMIT 10;
SELECT
SQL_
CALC_FOUND_ROWS * FROM table_name WHERE id > 100 LIMIT 10;
SELECT FOUND_ROWS();
SELECT FOUND_ROWS();
@end example
@end example
The second select will return how many rows the SELECT should have
The second select will return how many rows the SELECT should have
returned if we would remove the @code{LIMIT} clause.
returned if we would remove the @code{LIMIT} clause.
Note that if you are using @code{SELECT CALC_FOUND_ROWS ...} MySQL has
Note that if you are using @code{SELECT
SQL_
CALC_FOUND_ROWS ...} MySQL has
to calculate all rows in the result set. This is however faster than
to calculate all rows in the result set. This is however faster than
if you would not use @code{LIMIT} as the result set doesn't have to be sent
if you would not use @code{LIMIT} as the result set doesn't have to be sent
to the client.
to the client.
...
@@ -32552,7 +32552,7 @@ mysql> SELECT id,FLOOR(value/100) FROM tbl_name ORDER BY RAND();
...
@@ -32552,7 +32552,7 @@ mysql> SELECT id,FLOOR(value/100) FROM tbl_name ORDER BY RAND();
@c help SELECT
@c help SELECT
@example
@example
SELECT [STRAIGHT_JOIN] [SQL_SMALL_RESULT] [SQL_BIG_RESULT] [SQL_BUFFER_RESULT]
SELECT [STRAIGHT_JOIN] [SQL_SMALL_RESULT] [SQL_BIG_RESULT] [SQL_BUFFER_RESULT]
[SQL_CACHE | SQL_NO_CACHE] [CALC_FOUND_ROWS] [HIGH_PRIORITY]
[SQL_CACHE | SQL_NO_CACHE] [
SQL_
CALC_FOUND_ROWS] [HIGH_PRIORITY]
[DISTINCT | DISTINCTROW | ALL]
[DISTINCT | DISTINCTROW | ALL]
select_expression,...
select_expression,...
[INTO @{OUTFILE | DUMPFILE@} 'file_name' export_options]
[INTO @{OUTFILE | DUMPFILE@} 'file_name' export_options]
...
@@ -32710,7 +32710,7 @@ temporary tables to store the resulting table instead of using sorting. In
...
@@ -32710,7 +32710,7 @@ temporary tables to store the resulting table instead of using sorting. In
MySQL Version 3.23 this shouldn't normally be needed.
MySQL Version 3.23 this shouldn't normally be needed.
@item
@item
@code{CALC_FOUND_ROWS} tells MySQL to calculate how many rows there
@code{
SQL_
CALC_FOUND_ROWS} tells MySQL to calculate how many rows there
would be in the result, disregarding any @code{LIMIT} clause. The number
would be in the result, disregarding any @code{LIMIT} clause. The number
of rows can be obtained with @code{SELECT
of rows can be obtained with @code{SELECT
FOUND_ROWS()}. @xref{Miscellaneous functions}.
FOUND_ROWS()}. @xref{Miscellaneous functions}.
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