P.array()

Description:

Transform each record of a table sequence/record sequence and return a sequence of sequences.

Syntax:

P.array()

Note:

The function transforms each record of table sequence/record sequence P into a sequence, where each member is also a sequence made up of a record’s field values. The return value type is a sequence of sequences.

Parameter:

P

A table sequence/record sequence

Option:

@b

Discard the first row

Return value:

Sequence of sequences

Example:

 

A

 

1

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

Return a table sequence.

2

=A1.array()

Return a sequence of sequences.

3

=A1.array@b()

Discard the first row as @b option is present: