I used the following command to execute the stored procedure, but the delete wont run. what is the problem?
exec sp_delete 'fruits', '''1.5'',''3.5'''
sp_delete
CREATE PROCEDURE [dbo].[sp_delete]
@stock_type VARCHAR(255)
,@weight VARCHAR(255)
AS
IF @stock_type ='fruits'
BEGIN TRY
IF EXISTS(SELECT * FROM tblshop WHERE quantity='1' and weight in ( @weight))
BEGIN
DELETE FROM tblshop WHERE quantity='1' and weight in ( @weight )
END
END TRY
BEGIN CATCH
END CATCH