Assigns the specified value to a variable or output parameter.
SETstatement directly assigns the specified
value-expressionto one or more
target-variable's, see Target Variables. If a
target-variableis a routine parameter, it must have mode
value-expressionmust be assignment-compatible with the data type of it's
target-variable, see Assignments.
If multiple target-variables are assigned, the number of items in the row expression on the right hand of the assignment must be the same as the number of target-variables.
Where the target of the assignment is a declared variable, its name may be qualified with a scope label, see the Mimer SQL Programmer's Manual, Declaring Variables.
If the target of the assignment is a variable declared with the
ROWdata type, a row value expression may be specified for
If is possible to assign a value to a field of a variable declared with the ROW data type by using the following syntax to refer to the field:
See the Mimer SQL Programmer's Manual, The ROW Data Type and Mimer SQL Programmer's Manual, Row Value Expression, for more information.
ExamplesSET firstName = 'Moira'; SET pos = position(' ' IN name); SET book.title = 'Grapes of Wrath'; SET bookTitle = ('0-201-43328-1','JDBC API Tutorial and Reference'); SET (CITY, COUNTRY) = ('Uppsala', 'Sweden');
For more information, see the Mimer SQL Programmer's Manual, Assignment Using SET.
Mimer Information Technology AB
Voice: +46 18 780 92 00
Fax: +46 18 780 92 40