Re: define views using xquery

Dear all:

I have a question about the XQuery view. 
How people get to know a result data 
structure of a defined view? 

When people want to submit a query on some views,
he/she need to know the result structure of the view.
Can XQuery always decide its query output data structure?

Best Regards,

Makoto


From: Daniela Florescu <dana@xqrl.com>
Subject: Re: define views using xquery
Date: 21 Feb 2002 10:19:55 -0800
Message-ID: <1014315598.1824.48.camel@pollo>

>Dear Chen,
>
>Xquery *has* already a view mechanism: via functions.
>
>A function without any parameters corresponds entirely to
>a non-parametrized view SQL style, while a function with
>parameters correspond to a parameterized view.
>
>Hence, instead of using
>
>define view FOO as
>   query
>
>please use
>
>define function FOO() as
>   expression
>
>and you will get the exact same effect.
>
>Best regards,
>Dana

Received on Friday, 22 February 2002 01:25:48 UTC