Home

CONCURREADONLY

CONCURREADONLY is a designation used in some database access libraries to specify a read-only cursor or result set. When a cursor is opened with this concurrency mode, the application is not allowed to update, insert, or delete rows through that cursor. The read-only setting can enable the database engine to apply optimizations such as reduced locking and simpler transaction handling, since updates are not anticipated.

In practice, CONCURREADONLY appears as a flag or constant passed to cursor or statement configuration APIs.

Because the terminology is not universal, implementations may vary in naming and behavior. Some libraries use

See also:

- SQL_CONCUR_READ_ONLY

- ResultSet.CONCUR_READ_ONLY

- CONCUR_UPDATABLE

- Cursor concurrency concepts

It
is
typically
one
of
several
concurrency
options,
alongside
updatable
or
lockable
modes.
The
exact
semantics
can
vary
by
API
and
database;
some
systems
distinguish
read-only
at
the
cursor
level,
others
at
the
result
set
or
data
access
layer.
a
version
of
CONCURREADONLY
that
is
split
into
words
or
formatted
differently,
and
others
expose
equivalent
concepts
under
different
constants
or
enumerations.
Developers
should
consult
their
specific
API
or
database
driver
documentation
to
confirm
how
read-only
concurrency
is
requested
and
what
guarantees
it
provides.