xquery brackets without FLWOR -
Hello I have a little lame question, although the answer can not be found.
What happens if I leave the constructor bracket blank?
For example
{data (doctor ("somedata.xml") // node [0])}
> I mean, I know what happens, but how is it applied when it is parsed?Is that so?
{$ i for "0" return data (doctor ("somedata.xml") // node [0])}
This is not really the case; An FLWOR expression is another expression in many ways it may be that an FLWOR expression is executed as a SQL expression, but it is not necessary to do so.
XQuery can be seen as a functional programming language (such as Haskell), which is going to be declarative structures (as and how the order is).
Expression 1 + 2
is just an exquity expression that adds numbers 1 and 2, no one should be implicit in the expression of FLWOR around it
If you want to fully consider XQuery in a tubal-based algebra, you can consider the input to be an empty tuple. By this I mean low.
View this query:
$ x in ... $ y in ... where $ x / @ name = $ Y / @ name return $ x < / Code>
If you are considering it on a tupe-based algebra, then input $ x
and $ y
for the expression. It is clear how this can be related to a database query. This corresponds to a table with two columns, $ x
and $ y
and row for the name of each pair.
You may consider the following query as working on a Tupal with any value
// foo
< P> This will not be the same as a flavor expression, in which there is no force or only one return expression, which was allowed). There will be no table in relationable land, in which there will be no column and one line. Although it is just a logical abstract, and most (if not all) XQuery implementation it shows only as an expression.
Comments
Post a Comment