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 //
テーブル hi には挿入されません。
スクリプトは実際にはコマンドを介して手順を実行しませんplaycall
play
call
追加する必要があります
call play
指図
使用する
CALL play();
そして私は使用をお勧めします
DROP PROCEDURE IF EXISTS play()
代わりに DROP PROCEDURE play()