Perform one or more update operations.
A FLWUExpr
is a variant of the regular FLWOR expression.
Like the other update expressions it is introduced by the keyword
update
. In contrast to a FLWOR expression it has no
return
clause, but a do
clause that may contain a
single basic update expression or more than one basic update expressions that
are separated by commas and enclosed in parentheses.
For more information on how the clauses for
,
let
and where
are treated, please see the
documentation to FLWORExpr in
this reference guide or the section FLWOR
Expressions in the XQuery 4 User Guide.
If you specify two or more update operations that act on the same update node, conflicts may arise. Depending on the type of conflict, the operation may or may not be rejected by Tamino. See the section Conflicts in the XQuery 4 User Guide.
Delete all books in which Stevens appear as author or editor:
update for $a in input()/bib/book where $a/author/last = "Stevens" or $a/editor/last = "Stevens" do delete $a
The following construct(s) refer to this construct:
This construct is also related to the following construct(s):
FLWORExpr
|