I am trying to write a script that creates and calls a stored procedure named spInsertNewCategory
and getting this error on the following code:
CREATE PROCEDURE spInsertCategory(category_name VARCHAR(50))
BEGIN
INSERT INTO Categories
VALUES (@CategoryName);
END
Any help would be appreciated.
Also getting an error on the 50 that says it is expecting '(' or SELECT. This is the first time I have been completely lost on something. What am I doing wrong?
The code is supposed to be a single input parameter with no return value and I just don't know what to write.