How do I pass a variable to a MySQL script?
Answers
Answered by
0
CREATE PROCEDURE sp_test(var1 INT)
BEGIN
DECLARE start INT unsigned DEFAULT 1;
DECLARE finish INT unsigned DEFAULT 10;
SELECT var1, start, finish;
SELECT * FROM places WHERE place BETWEEN start AND finish;
END; //
DELIMITER ;
Similar questions
Science,
6 months ago
English,
6 months ago
India Languages,
6 months ago
Computer Science,
11 months ago
Computer Science,
11 months ago
Biology,
1 year ago
English,
1 year ago