I\'m trying to find a record. Which let me choose to find a existing record in my database using Stored Procedure. When I tried to search a existing data it doesn\'t give me
you should use delimiter to change the delimiter to something different than ";" when you create the procedure:
delimiter //
CREATE PROCEDURE getSECTION_NAME(IN ID INT, OUT NAME VARCHAR(50))
BEGIN
SELECT SECTION_NAME INTO NAME FROM allsections_list WHERE SECTION_ID = ID;
END
//
delimiter ;
The first delimiter statement sets the delimiter to "//". This way, the ";" in your stored procedure code is not interpreted as a delimiter anymore. Your CREATE PROCEDURE statement then correctly ends at the "//". Aftwerwards, the second delimiterstatement changes the delimiter back to ";".