Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我对 mysql 创建过程脚本有点困惑。我的脚本如下所示:
DELIMITER // DROP PROCEDURE play; CREATE PROCEDURE play() BEGIN insert into hi (name,id)VALUES ('apple','2010'); END //
它不会插入到表中。
您的脚本实际上并未通过命令执行该过程playcall
play
call
您需要添加
call play
命令
采用
CALL play();
我建议使用
DROP PROCEDURE IF EXISTS play()
而是 DROP PROCEDURE play()