ch .fetch()

Read(479) Label: channel, set function,

Description:

Fetch and store the existing data in a channel.

Syntax:

ch.fetch()

Note:

The function fetches and stores the existing data in channel ch. It is a set function.

Parameters:

ch

Channel

Return value:

Channel

Example:

 

A

 

1

=demo.query("select * from SALES")

 

2

=channel()

Create a channel

3

=A2.select(ORDERID>100)

Attach ch.select() operation to the channel

4

=A2.fetch()

Attach ch.fetch() function that gets the final result set to A2’s channel to fetch and store the existing data in the channel

5

=A1.push(A2)

Push data in A1’s sequence into the channel

6

=A2.result()

Get the result of performing the operation from the channel