I'm used to the SQL Server world but am working with MYSQL but i can't seem to find the syntax through the documentation of MYSQL. I have this stored procedure, could somebody help me out on what i'm missing. Is it that i'm not specifying IN or OUT for the results? I'd appreciate any help.
CREATE PROCEDURE GetDeptDetails
(@DepartmentID int)
AS
SELECT Name, Desc
FROM Table1
WHERE DepartmentID = @DepartmentID
This is what i had from mysql below:
DELIMITER $$
DROP PROCEDURE IF EXISTS `test`.`GetDepartmentDetails`$$
CREATE PROCEDURE `test`.`GetDepartmentDetails`
(
@DeptID int
)
AS
BEGIN
Select ProductName, ProductDescr
From Department
Where DeptID = @DeptID
END$$
DELIMITER ;







Bookmarks