The SET Statement






The SET Statement

The SET statement can be used to assign a value to local variables. The rule that any expression can be used applies here as well.

<set statement> ::=
   SET <local variable definition>
       [ {, <local variable definition> }... ]

<local variable definition> ::=
   <local variable> { = | := } <scalar expression>


In the previous sections, we showed several examples of the SET statement. The following examples are also correct:

SET VAR1 = 1;
SET VAR1 := 1;
SET VAR1 = 1, VAR2 = VAR1;

In the last example, a value is assigned to VAR1 first, and that value is assigned to VAR2 via VAR1 next.



 Python   SQL   Java   php   Perl 
 game development   web development   internet   *nix   graphics   hardware 
 telecommunications   C++ 
 Flash   Active Directory   Windows