Defines a variable within the scope of the module and, optionally, initializes the variable to a value.
Another version of this statement is part of the Sybase CEP Function Language, for use is creating user-defined functions. For more information, see Create Variable Statement.
A variable name must be unique to the query module and has scope only within the module.
Variables of a data type that does not permit literal constants cannot be initialized with the Create Variable statement.
Set Variable Statement
CREATE VARIABLE INTEGER message_count = 0;