Difference between revisions of "STORE AUTOMEM"
From Lianjapedia
Yvonne.milne (Talk | contribs) m (1 revision) |
Yvonne.milne (Talk | contribs) |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
==Purpose== | ==Purpose== | ||
To generate memory variables corresponding to the current record | To generate memory variables corresponding to the current record | ||
− | |||
==Syntax== | ==Syntax== | ||
STORE AUTOMEM | STORE AUTOMEM | ||
− | |||
==See Also== | ==See Also== | ||
[[APPEND AUTOMEM]], [[CLEAR AUTOMEM]], [[GATHER]], [[REPLACE]], [[REPLACE AUTOMEM]], [[SCATTER]], [[USE]] | [[APPEND AUTOMEM]], [[CLEAR AUTOMEM]], [[GATHER]], [[REPLACE]], [[REPLACE AUTOMEM]], [[SCATTER]], [[USE]] | ||
− | |||
==Description== | ==Description== | ||
The STORE AUTOMEM command is used to generate memory variables corresponding to the current record. A memory variable with a matching name, data type and length is created for each field in the current record. The memory variables are initialized with the field values. | The STORE AUTOMEM command is used to generate memory variables corresponding to the current record. A memory variable with a matching name, data type and length is created for each field in the current record. The memory variables are initialized with the field values. | ||
− | |||
==Example== | ==Example== | ||
Line 31: | Line 27: | ||
</code> | </code> | ||
− | |||
− | |||
− | |||
[[Category:Documentation]] | [[Category:Documentation]] | ||
[[Category:Commands]] | [[Category:Commands]] | ||
− | [[Category: | + | [[Category:Declaring Variables and Arrays]] |
− | [[Category: | + | [[Category:NoSQL Commands]] |
Latest revision as of 12:43, 4 February 2013
Contents
Purpose
To generate memory variables corresponding to the current record
Syntax
STORE AUTOMEM
See Also
APPEND AUTOMEM, CLEAR AUTOMEM, GATHER, REPLACE, REPLACE AUTOMEM, SCATTER, USE
Description
The STORE AUTOMEM command is used to generate memory variables corresponding to the current record. A memory variable with a matching name, data type and length is created for each field in the current record. The memory variables are initialized with the field values.
Example
set locktype to optimistic use customer store automem @1,1 get m.name @2,1 get m.address @3,1 get m.state read if not change() replace customer.name with m.name,; customer.address with m.address,; customer.state with m.state endif