Skip to content

Commit

Permalink
Merge pull request #34 from nejigane/patch-4
Browse files Browse the repository at this point in the history
Update insert_into.rst
  • Loading branch information
nobu-k committed Mar 25, 2016
2 parents 9dee4b3 + 67ca3b2 commit 1aa8824
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions source/ref/stmts/insert_into.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Synopsis

::

INSERT INTO sink {select | FROM stream}
INSERT INTO sink FROM stream

Description
-----------
Expand All @@ -21,28 +21,12 @@ Parameters
sink
The name of the sink to which tuples are inserted.

select
A ``SELECT`` statement generating a stream of tuples to be inserted into
the sink.

stream
The name of a stream or a source.

Examples
--------

To insert tuples into a sink named "snk" using a ``SELECT``::

INSERT INTO snk SELECT RSTREAM * FROM src [RANGE 1 TUPLES] WHERE price > 10000;

The ``SELECT`` can contain multiple streams or any condition.

To insert tuples into a sink from a source having the name "src"::

INSERT INTO snk FROM src;

This is a short form of

::

INSERT INTO snk SELECT RSTREAM * FROM src [RANGE 1 TUPLES];

0 comments on commit 1aa8824

Please sign in to comment.