Zoomed Image

AMSX Scripting Language - Command : SqlStatement.SqlSet

Summary

Execute a SQL statement variable and assign column values to named AMSX variables

Description

Runs the SQL statement variable, reads one row from the result set, and assigns each column value to the corresponding variable from the comma-separated list. If there are fewer rows than the requested row index, no assignment is made.

Parameters

ParameterDescription
cmdSQL statement variable name
Argument 0comma-separated list of AMSX variable names to receive column values in order
Argument 1zero-based row index to read, or leave blank for the first row

Syntax


SqlStatement.SqlSet "SQL statement variable name", "comma-separated list of AMSX variable names to receive column values in order", "zero-based row index to read, or leave blank for the first row"

Return to the AMSX Command Reference