[英]Getting Error Code: 1064 while creating Stored Procedure in Mysql8.0
这是我创建存储过程的简单代码:
Create Procedure GetemployeeDetails
As
Select * from OrderDetails
Go
获取错误为 Create Procedure GetemployeeDetails AS Select * from 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 版。 谁能告诉我哪个是正确的语法?
DELIMITER $$ CREATE PROCEDURE GetemployeeDetails() BEGIN SELECT * FROM OrderDetails ; 结束 $$
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.