HP Neoview SQL Reference Manual page 145

Hide thumbs Also See for Neoview SQL:
Table of Contents

Advertisement

FROM table-ref [,table-ref]...
specifies a list of tables, views, derived tables, or joined tables that determine the contents of
an intermediate result table from which Neoview SQL returns the columns you specify in
select-list. To refer to a table or view, use the ANSI logical name.
See
"Database Object Names" (page
If you specify only one table-ref, the intermediate result table consists of rows derived
from that table reference. If you specify more than one table-ref, the intermediate result
table is the cross-product of result tables derived from the individual table references.
table [[AS] corr [(col-expr-list)]] | STREAM ( table) [[AS] corr
[(col-expr-list)]] [AFTER LAST ROW] | view [[AS] corr [(col-expr-list)]] |
STREAM (view) [[AS] corr [(col-expr-list)]] [AFTER LAST ROW] | (query-expr)
[AS] corr [(col-expr-list)] | (delete-statement [RETURN select-list]) [AS]
corr [(col-expr-list)] | (update-statement [RETURN select-list]) [AS] corr
[(col-expr-list)] | (insert-statement) [AS] corr [(col-expr-list)] |
joined-table
specifies a table-ref as a single table, view, derived table determined by the evaluation
of a query expression, a joined table, or a streaming table.
You can specify this optional clause for a table or view. This clause is required for a
derived table:
[AS] corr [(col-expr-list)]
specifies a correlation name for the preceding table reference table-ref in the
FROM clause. See
col-expr [[AS] name] [,col-expr [[AS] name]]...
specifies the items in col-expr-list, a list of derived columns.
For the specification of a query expression, see the syntax diagram for query-expr
above.
STREAM (table) [[AS] corr [( col-expr-list)]]
returns a continuous data stream from a table. A cursor opened on a continuous data
stream never returns an end-of-data condition but blocks (waits) and resumes execution
when new rows become available.
[[AS] corr [( col-expr-list)]]
specifies an optional correlation name and an optional column list for the preceding
table reference in the FROM clause.
[AFTER LAST ROW]
causes the stream to skip all existing rows in the table and return only rows that are
published after the stream's cursor is opened.
STREAM (view) [[AS] corr [( col-expr-list)]]
returns a continuous data stream from a view.
[AFTER LAST ROW]
causes the stream to skip all existing rows in the view and return only rows that are
published after the stream's cursor is opened.
(delete-statement [RETURN select-list]) [AS] corr [( col-expr-list)]
enables an application to read and delete rows with a single operation. For the syntax of
delete-statement, see the
RETURN select-list
specifies the columns or column expressions returned from the deleted row. The items
in the select-list can be of these forms:
196).
"Correlation Names" (page
"DELETE Statement" (page
194).
90).
SELECT Statement
145

Advertisement

Table of Contents
loading

Table of Contents