这是我创建存储过程的简单代码:
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版。谁能告诉我哪种是正确的语法?
答案 0 :(得分:0)
DELIMITER $$ 创建过程GetemployeeDetails() 开始 选择* FROM OrderDetails; 结束$$