gpt4 book ai didi

mysql - 无法在mysql中创建存储过程

转载 作者:行者123 更新时间:2023-11-29 21:03:45 26 4
gpt4 key购买 nike

我正在尝试在 mysql 中创建存储过程,但显示以下错误..

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 '' at line 6

程序如下..

CREATE PROCEDURE getSchools( IN masterschools_id int )
BEGIN
select * from masterschools where id =masterschools_id;
END

最佳答案

尝试过这个并且它工作正常......

 create DEFINER=products@localhost procedure getMyschools ()
NOT DETERMINISTIC NO SQL SQL SECURITY DEFINER
select * from masterschools;

关于mysql - 无法在mysql中创建存储过程,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36997903/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com