开发者社区> 问答> 正文

mysql5.7如何调用写好的存储过程?报错

call p_e-learning_student_handle();
这是调用的语句
CREATE DEFINER=`root`@`%` PROCEDURE `jtedu`.`p_e-learning_student_handle`()
BEGIN
select * from tmp_ent_stu_info;
END
这是存储过程
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 '-learning_student_handle()' at line 1
这是报错

 

求大神解答

展开
收起
爱吃鱼的程序员 2020-06-06 20:16:02 497 0
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB
                        <p>貌似命名不能用横划线;换个名称呢?</p>
    
                    
    
                            谢谢,的确不能用横线,已经解决了
    
    2020-06-06 20:16:14
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
搭建电商项目架构连接MySQL 立即下载
搭建4层电商项目架构,实战连接MySQL 立即下载
PolarDB MySQL引擎重磅功能及产品能力盛大发布 立即下载

相关镜像