Do Syntax; Handler Syntax - Oracle 5.0 Reference Manual

Table of Contents

Advertisement

WHERE a1.id=a2.id;
13.2.3.
Syntax
DO
DO
expr
[, expr] ...
executes the expressions but does not return any results. In most respects,
DO
SELECT expr,
result.
is useful primarily with functions that have side effects, such as
DO
13.2.4.
HANDLER
HANDLER
tbl_name
HANDLER
tbl_name
[ WHERE
HANDLER
tbl_name
[ WHERE
HANDLER
tbl_name
[ WHERE
HANDLER
tbl_name
The
HANDLER
and
MyISAM
The
HANDLER ... OPEN
HANDLER ... READ
until the session calls
alias, further references to the open table with other
than the table name.
The first
HANDLER ... READ
values and the
values as a comma-separated list. Either specify values for all the columns in the index, or specify
values for a leftmost prefix of the index columns. Suppose that an index
columns named col_a, col_b, and col_c, in that order. The
for all three columns in the index, or for the columns in a leftmost prefix. For example:
HANDLER ... READ my_idx = (col_a_val,col_b_val,col_c_val) ...
HANDLER ... READ my_idx = (col_a_val,col_b_val) ...
HANDLER ... READ my_idx = (col_a_val) ...
To employ the
`PRIMARY`:
HANDLER
tbl_name
The second
condition.
WHERE
The third
HANDLER ... READ
the
condition. It is faster than
WHERE
is desired. Natural row order is the order in which rows are stored in a
statement works for
data file.
Without a
LIMIT
return a specific number of rows, include a
statement. See
HANDLER ... CLOSE
..., but has the advantage that it is slightly faster when you do not care about the
Syntax
OPEN [ [AS] alias]
READ
index_name
where_condition
] [LIMIT ... ]
READ
index_name
where_condition
] [LIMIT ... ]
READ { FIRST | NEXT }
where_condition
] [LIMIT ... ]
CLOSE
statement provides direct access to table storage engine interfaces. It is available for
tables.
InnoDB
statement opens a table, making it accessible using subsequent
statements. This table object is not shared by other sessions and is not closed
HANDLER ... CLOSE
syntax fetches a row where the index specified satisfies the given
condition is met. If you have a multiple-column index, specify the index column
WHERE
interface to refer to a table's
HANDLER
READ `PRIMARY` ...
syntax fetches a row from the table in index order that matches the
HANDLER ... READ
syntax fetches a row from the table in natural row order that matches
tables as well, but there is no such concept because there is no separate
InnoDB
clause, all forms of
Section 13.2.8,
"SELECT
closes a table that was opened with
Syntax
DO
{ = | <= | >= | < | > } (value1,value2,...)
{ FIRST | NEXT | PREV | LAST }
or the session terminates. If you open the table using an
HANDLER
PRIMARY
HANDLER tbl_name READ index_name
HANDLER ... READ
clause. It has the same syntax as for the
LIMIT
Syntax".
1064
DO
RELEASE_LOCK()
statements must use the alias rather
includes three
my_idx
statement can specify values
HANDLER
KEY, use the quoted identifier
when a full table scan
table data file. This
MyISAM
fetch a single row if one is available. To
HANDLER ...
OPEN.
is shorthand for
[967].
SELECT

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the 5.0 and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Mysql 5.0

Table of Contents