Syntax error in Mysql Declare
Начал изучать и понял что declare это как объявление переменной, но ошибку не могу решить
Error 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 '
declare @o int use VUZ select estimation, id_student, tit= when 2 then 'дво' at line 1 0.000 sec
в коде
declare @o as int
use VUZ
select estimation, id_student, tit=
when 2 then 'двоечник'
when 3 then 'троечник'
when 4 then 'хорошист'
when 5 then 'отличник'
end
from dbo.mark_mag
показывает declare is not valid at this position