I have a mysql stored procedure from this (google book), and one example is this:
DELIMITER $$
DROP PROCEDURE IF EXISTS my_sqrt$$
CREATE PROCEDURE my_sqrt(input_number INT, OUT out_number FLOAT)
BEGIN
SET out_number=SQRT(input_number);
END$$
DELIMITER ;
The procedure compiles fine. (I am using MySQL Query Browser in ubuntu).
However when I call the procedure:
CALL my_sqrt(4,@out_value);
(also in query browser)
It returns an error:
(1064) check the manual that correspond to the...
Why isn't this example working?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…