Bug #48233 | Unable to declare variables | ||
---|---|---|---|
Submitted: | 22 Oct 2009 14:34 | Modified: | 22 Oct 2009 15:01 |
Reporter: | A S | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server: Options | Severity: | S3 (Non-critical) |
Version: | 5.1.37 | OS: | Linux (Fedora 11 kernel 2.6.30.8-64.fc11.i686) |
Assigned to: | CPU Architecture: | Any | |
Tags: | error 1064, variables |
[22 Oct 2009 14:34]
A S
[22 Oct 2009 14:50]
Valeriy Kravchuk
DECLARE can be used only in BEGIN ... END blocks. Please, check the manual: http://dev.mysql.com/doc/refman/5.1/en/declare-local-variable.html http://dev.mysql.com/doc/refman/5.1/en/local-variable-scope.html