标签: mysql-workbench mysql-error-1064
set @name = "Bespin"; set @query = planet_in_num_movies(@name); select @query; PREPARE stmt from @query; EXECUTE stmt; DEALLOCATE PREPARE stmt;
从@query错误代码:1064预备stmt。您的SQL语法有错误;检查与您的MySQL服务器版本相对应的手册,以便在#1;'附近使用正确的语法。在第1行