Can someone please tell me how to run a stored procedure in SC. I want the procedure to pick values from a form.
so rather than having a number for example 12212345. I want it to be {number}, is this possible?
Here is my procedure (I need to replace 79090200 with {from} and 79090233 with {to}):
DELIMITER $$
CREATE DEFINER=root
@localhost
PROCEDURE sp_increment
()
BEGIN
DECLARE start_val INT;
DECLARE end_val INT;
SET start_val=79090200;
SET end_val=79090233;
WHILE start_val <= end_val DO
INSERT INTO awb (gsa, no, status, aid) VALUES(000, start_val, “N”, 0);
SET start_val = start_val + 11;
END WHILE;
END
Any help would mean a lot.