描述:
新建管道并将游标中的数据推送到管道。
语法:
channel(cs)
备注:
创建管道后将游标cs中的数据推送到管道,最后返回管道。相当于cs.push(channel())。
参数:
cs |
游标 |
返回值:
管道
示例:
|
A |
|
1 |
=demo.cursor("select * from SCORES where CLASS = 'Class one'") |
|
2 |
=channel(A1) |
创建管道后将游标A1中的数据推送到管道,此时数据不会立马被推送到管道,相当于表达式:=A1.push(channel())。结果返回管道。 |
3 |
>A2.select(STUDENTID==1) |
|
4 |
>A2.fetch() |
|
5 |
=A1.fetch() |
|
6 |
=A2.result() |
|