Difference between revisions of "REPLACE AUTOMEM"
From Lianjapedia
Yvonne.milne (Talk | contribs) m (1 revision) |
Yvonne.milne (Talk | contribs) |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
==Purpose== | ==Purpose== | ||
Update fields with values stored in correspondingly named memory variables | Update fields with values stored in correspondingly named memory variables | ||
− | |||
==Syntax== | ==Syntax== | ||
REPLACE AUTOMEM | REPLACE AUTOMEM | ||
− | |||
==See Also== | ==See Also== | ||
− | [[CLEAR AUTOMEM]], [[GATHER | + | [[CLEAR AUTOMEM]], [[GATHER]], [[SCATTER]], [[STORE AUTOMEM]], [[USE]] |
− | + | ||
==Description== | ==Description== | ||
The REPLACE AUTOMEM command updates fields in the current record of the active table. It assumes the existence of memory variables that match the fields in terms of name, data type and size. Such memory variables can be generated automatically using the STORE AUTOMEM or USE…AUTOMEM commands. | The REPLACE AUTOMEM command updates fields in the current record of the active table. It assumes the existence of memory variables that match the fields in terms of name, data type and size. Such memory variables can be generated automatically using the STORE AUTOMEM or USE…AUTOMEM commands. | ||
− | |||
==Example== | ==Example== | ||
<code lang="recital"> | <code lang="recital"> | ||
− | + | use customers | |
− | use | + | |
store automem | store automem | ||
− | + | //... | |
− | + | replace automem | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
</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:47, 4 February 2013
Contents
Purpose
Update fields with values stored in correspondingly named memory variables
Syntax
REPLACE AUTOMEM
See Also
CLEAR AUTOMEM, GATHER, SCATTER, STORE AUTOMEM, USE
Description
The REPLACE AUTOMEM command updates fields in the current record of the active table. It assumes the existence of memory variables that match the fields in terms of name, data type and size. Such memory variables can be generated automatically using the STORE AUTOMEM or USE…AUTOMEM commands.
Example
use customers store automem //... replace automem