Re: XQuery Update to return values

Hi Emma,

> What is the syntax that X-Hive/DB supports for returning values? Or  
> are
> there any documents I can have a look at? Thanks.

X-Hive simply allows to mix updating statements with non-updating  
statements, i.e.

declare updating function local:foo() as xs:integer
{
   let $items := ...
   return (
     do delete $items,
     count($items))
}

You can download X-Hive/DB from http://www.x-hive.com/products/db/,  
the download includes documentation.

Regards,
Martin

-- 
Martin Probst
X-Hive Corporation
martin@x-hive.com

Received on Tuesday, 31 July 2007 06:57:52 UTC