I now how to create the procedure but do not know how to call the procedure
this is what I have done. Created the procedure :
CREATE PROCEDURE SelectAllCustomers
AS
SELECT * FROM Customers
GO;
I have created it but next thing how to call the procedure, directly in the SQL console?
2
Answers
you can call it like this:
in your case:
if you want to pass parameters, just put it after the procedure name using the comma as a separator:
You can call it using
CALL
. e.g.See docs for details.