Can't declare variable in stored procedure phpmyadmin | mysql
<p>I wanted to create a stored procedure that has a variable in it, so I made this</p>

<pre><code>CREATE PROCEDURE SPTest()
BEGIN
    DECLARE @var INT;
END
</code></pre>

<p>But it gave me an error</p>

<pre><code>#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '@var INT' at line 3
</code></pre>

<p>I've tried all the answer from stackoverflow, I'm using phpmyadmin version 4.5.4.1 and it says up to date. How can I solve this?
Thanks in advance</p>