Description:
Compute expressions against each member of a record sequence.
Syntax:
P.run(xi:Fi,…)
Note:
The function computes expression xi for each record in record sequence/table sequence P, assigns the results to Fi field and returns P that has been modified. The expression xi uses "~" to reference the current member of P.
Parameter:
P |
A record sequence/table sequence |
xi |
The new value of Fi field |
Fi |
A field of A |
Return value:
Table sequence
Example:
|
A |
|
1 |
=demo.query("select DEPT,NAME,BIRTHDAY from EMPLOYEE") |
|
2 |
=A1.derive(age(BIRTHDAY):Age) |
|
3 |
=A2.run(Age+10:Age) |
|
Related function: