Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cduce
cduce
Commits
c16f9a88
Commit
c16f9a88
authored
Jul 10, 2007
by
Pietro Abate
Browse files
[r2004-07-03 12:03:25 by beppe] Added box on queries
Original author: beppe Date: 2004-07-03 12:03:25+00:00
parent
bce02df8
Changes
1
Hide whitespace changes
Inline
Side-by-side
web/manual/expressions.xml
View file @
c16f9a88
...
@@ -660,4 +660,31 @@ the use of references:
...
@@ -660,4 +660,31 @@ the use of references:
</box>
</box>
<box
title=
"Queries"
link=
"sel"
>
<p>
CDuce is endowed with a
<code>
select_from_where
</code>
syntax to perform some SQL-like queries. The general form of select expressions is
</p>
<sample>
<![CDATA[
select %%e%% from
%%p1%% in %%e1%%
%%p2%% in %%e2%%
:
%%pn%% in %%en%%
where %%b%%
]]>
</sample>
<p>
where
<code>
%%e%%
</code>
is an expression
<code>
%%b%%
</code>
a boolean
expression, the
<code>
%%pi%%
</code>
's are patterns, and the
<code>
%%ei%%
</code>
's are sequence expressions.
</p>
<p>
A
<code>
select
</code>
expression works like a set of nested
<code>
transform
</code>
expressions. The advantage of using selections is that
these queries are automatically optimized by applying classical logic SQL query
optimizations techniques (automatic optimization can be disabled).
</p>
</box>
</page>
</page>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment