I have already created my database with tables and now I want to create stored procedures for my tables but I keep getting an error.
This is how I try creating the stored procedure in SQL:
DELIMITER //
CREATE PROCEDURE sp_accesslevel_Select()
BEGIN
SELECT * FROM accesslevel;
END //
DELIMITER;
And the error I get is:
"#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 'DELIMITER // CREATE PROCEDURE sp_accesslevel_Select() BEGIN SELECT * FROM ' at line 1 "
Can anyone help me fix this problem?
尝试进入“常规”菜单,然后从那里创建
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.