[英]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.