PreviousSQL Engine Reference (v9 SP2 (9.5) revision 1) Next

SET

Chapter contents

The SET statement assigns a value to a declared variable.

Syntax

SET variable-name = proc-expr 

Remarks

You must declare variables before you can set them. SET is allowed only in stored procedures and triggers.

Examples

The following examples assigns a value of 10 to var1.

SET :var1 = 10; 

See Also

CREATE PROCEDURE

DECLARE


Chapter contents
Book contents

Prev topic: SET TRUENULLCREATE
Next topic: SIGNAL