UpdateExpr

Update expression.

Top of page

Related Syntax Constructs

The following construct(s) refer to this construct:


Syntax

UpdateExpr

graphics/UpdateExpr.png

InsertClause DeleteClause RenameClause ReplaceClause FLWUExpr UpdateIfExpr

Description

An UpdateExpr contains either one of the basic update operations that insert, delete, rename or replace node sequences. Or it is a FLWUExpr which is a variant of the regular FLWR expressions for more complex update operations. All update expressions are introduced by the keyword update.

As a result the list of those XML objects is returned that were affected by the update operation.

For any update operation, you need appropriate writing permission for the resulting document. The resulting document must still conform to the schema definition except if you deliberately turn off schema validation for the affected database. If you use more than one update operation in a FLWUExpr this can lead to conflicts. See Performing Update Operations for details.

Example

See the pages to the respective update expressions for examples.