T.cursor( x,…;wi,... )

Description:

Return the specified column(s) in a cluster entity table/cluster in-memory table as a cluster cursor.

Syntax:

T.cursor(x,…;wi,...)

Note:

The function computes data in a cluster entity table/cluster in-memory table with expression x and the filtering condition w and returns the results as a cluster cursor.

Option:

@m

The function with this option generates a cluster multicursor synchronously segmented into n parts. n is a positive integer representing the number of segments to be divided; the function returns an ordinary cursor if n<2; use the value ofDefault number of subcursors in a multicursorset inTool-Optionsif n is absent

Parameter:

T

A cluster entity table/cluster in-memory table; cannot be a duplicate table

x

An expression

wi

Filtering condition; multiple conditions are separated by comma(s) and their relationships are AND

Return value:

A cluster (multi)cursor

Example:

 

A

 

1

=file(“D:/tb4.ctx”:[1],“169.254.121.62:8281”)

Open a cluster table file.

2

=A1.open()

Return a cluster composite table.

3

=A2.attach(table3)

Retrieve cluster entity table table3.

4

=A2.cursor()

Return a cluster cursor.

5

=A3.cursor(NAME,GENDER;EID<6)

Return NAME field and GENER field where EID<6 as a cluster cursor.

6

=file(“tb5.ctx”:[2],“192.168.31.72:8281”)

 

7

=A6.open()

 

8

=A7.cursor@m(;;3)

Generate a cluster multicursor that is segmented into 3 parts.

9

=A7.cursor()

 

10

=A9.memory()

Generate a cluster in-memory table.

11

=A10.cursor()

Return a cluster cursor.