Answer the question
In order to leave comments, you need to log in
MySQL #1064 - You have an error in your SQL syntax, what is the reason?
#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 CURSOR', 24, 'Syntax:\nDECLARE cursor_name CURSOR FOR select_statement\n' at line 39
Сама суть ошибки, суть в том, что переношу базу с локалки на mysql и вылазит ошибка не могу понять в чем проблема.
На строке 39, пусто просто --------------------
Answer the question
In order to leave comments, you need to log in
По-моему у Вас локальная бд версии 5.7, а удаленная версией ниже. Проверьте это.
Declare cursor в MySQL 5.7 только.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question