
Chapter 7: Databases and Data Sources
Commands
OpenOffice.org
command
SQL
command
Meaning Condition is satisfied if...
IS EMPTY IS NULL is null ... The field is empty. For Yes/No
fields with three states, this command
automatically queries the
undetermined state (neither Yes nor
No).
IS NOT EMPTY IS NOT NULL is not empty ... the field is not empty.
LIKE (placeholder *
for any number of
characters
placeholder ? for
exactly one character)
LIKE (%
placeholder for
any number of
characters
Placeholder _ for
exactly one
character)
is an element of ... the data field contains the indicated
expression. The (*) placeholder
indicates whether the expression x
occurs at the beginning of (x*), at the
end of (*x) or inside the field content
(*x*).Either the SQL % character or
the familiar (*) file system
placeholder can be entered as a
placeholder in SQL queries in the
$[officename] interface. The * or %
placeholder stands for any number of
characters. The question mark (?) in
the $[officename] interface or the
underscore (_) in SQL queries is used
to represent exactly one character.
NOT LIKE NOT LIKE Is not an element
of
... the field does not contain the
specified expression.
BETWEEN x AND y BETWEEN x
AND y
falls within the
interval [x,y]
... the field contains a value that lies
between the two values x and y.
NOT BETWEEN x
AND y
NOT BETWEEN
x AND y
Does not fall
within the
interval [x,y]
... the field contains a value that does
not lie between the two values x and y.
IN (a; b; c...) Note that
the semicolons are used
as separators in all
value lists!
IN (a, b, c...) contains a, b, c... ... the field contains one of the
specified expressions a, b, c,... Any
number of expressions can be
specified, and the result of the query is
determined by an Or link. The
expressions a, b, c... can be either
numbers or characters
NOT IN (a; b; c...) NOT IN (a, b, c...) does not contain
a, b, c...
... the field does not contain one of the
specified expressions a, b, c,...
= TRUE = TRUE has the value
True
... the field has the value True.
= FALSE = FALSE has the value
false
... the field has the value false.
Examples of Usage
OpenOffice.org User Guide for 2.x 390
Kommentare zu diesen Handbüchern