Hello,
I'm relatively new to the world of Stored Procedures in SQL Server. This may be a silly question, but I've done some searching and haven't come up with any solid answers.
Is is possible to assign the result of a SELECT statement e.g.
to a local variable within my stored procedure? If so, is this a good practice, or is there a better approach?
Thank you.
I'm relatively new to the world of Stored Procedures in SQL Server. This may be a silly question, but I've done some searching and haven't come up with any solid answers.
Is is possible to assign the result of a SELECT statement e.g.
Code:
SELECT TOP 1 Cust_Name FROM Customers
Thank you.
Comment