После того, как я запустил это, он не показывает никаких ошибок, но не создает никаких хранимых процедур. Может ли кто-нибудь подсказать мне, что мне делать, чтобы создать новую процедуру
DELIMITER //
CREATE PROCEDURE GetAllBrand(
IN Brand_Sno VARCHAR(40),
IN Brand_B_Id VARCHAR(40),
IN Brand_B_Name VARCHAR(40),
IN Brand_UpDt DATE,
IN Brand_UpBy DATE,
IN Brand_CrDt DATE,
IN Brand_CrBy DATE,
IN Brand_Dealer_Name VARCHAR(40),
IN Brand_Dealer_Contact VARCHAR(40),
IN Brand_Dealer_Address VARCHAR(50),
IN Brand_Dealer_Location VARCHAR(40)
)
BEGIN
/* Retrieving rows with a specific Sno */
IF (Brand_Sno IS NOT NULL and Brand_B_Id IS NULL and Brand_B_Name IS NULL and Brand_UpDt IS NULL and Brand_UpBy IS NULL and Brand_CrDt IS NULL and Brand_CrBy IS NULL and Brand_Dealer_Name IS NULL and Brand_Dealer_Contact IS NULL and Brand_Dealer_Address IS NULL and Brand_Dealer_Location IS NULL) THEN
SELECT * from Brand where B_Sno = Brand_Sno;
/* Retrieving rows with a specific B_Id */
ELSE IF (Brand_Sno IS NULL and Brand_B_Id IS NOT NULL and Brand_B_Name IS NULL and Brand_UpDt IS NULL and Brand_UpBy IS NULL and Brand_CrDt IS NULL and Brand_CrBy IS NULL and Brand_Dealer_Name IS NULL and Brand_Dealer_Contact IS NULL and Brand_Dealer_Address IS NULL and Brand_Dealer_Location IS NULL) THEN
SELECT * from Brand where B_Id = Brand_B_Id;
ELSE
SELECT * from Brand;
END IF;
END &&
DELIMITER //