在Mysql8.0中创建存储过程时出现错误代码:1064

时间:2020-08-26 15:14:46

标签: mysql stored-procedures

这是我创建存储过程的简单代码:

Create Procedure GetemployeeDetails
As
Select * from OrderDetails
Go

在创建过程中获取错误GetemployeeDetails AS从OrderDetails Go中选择*

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 'AS Select * from OrderDetails Go' 
at line 2   0.000 sec.

我正在使用MySql工作台8.0版。谁能告诉我哪种是正确的语法?

1 个答案:

答案 0 :(得分:0)

DELIMITER $$ 创建过程GetemployeeDetails() 开始 选择* FROM OrderDetails; 结束$$

相关问题