query is a relation with one or MORE tuples that contain the queries. The queries must return the same set of attributes, and may differ only in the where clause.
RELATION query: dummy char
select title, author, pages from book where pages > 200
when executing the plan:
PLAN test
{
INPUT: stream books
OUTPUT: stream result
BODY
{
dbquerymulti (query, "jdbc:oracle:thin:@mydb!scott!tiger" : result)
}
}
will generate the output:
----------------------------------------------
RELATION: udbquery1_result
attrs: title, author, pages
----------------------------------------------
Title3|Author2|733
Title5|Author2|1152
Title2|Author2|479
----------------------------------------------