Ms SQL Server With Store Procedure Insert123
Ms SQL Server With Store Procedure Insert123
INSERT,DELETE,UPDATE
first_name VARCHAR(10),
last_name VARCHAR(10),
salary DECIMAL(10,2),
city VARCHAR(20),
GO
GO
go
go
1
select * from employee
END
IF @StatementType = 'Update'
BEGIN
UPDATE employee SET
First_name = @first_name, last_name = @last_name, salary = @salary,
city = @city
WHERE id = @id
END
else IF @StatementType = 'Delete'
BEGIN
DELETE FROM employee WHERE id = @id
END
end
2
END
SET NOCOUNT OFF
END