-7018: Variable not allowed in view definition
Explanation
Parameters must not be specified in the CREATE VIEW statement.
User Response
Use variables instead of constants.