Create procedure SP_pro2
As
Begin
DECLARE @query as nvarchar(max),
@id as nvarchar(max)
set @id='1'
SET @query =(Select jobname FROM job_add where Jobid=@id)
update job_add set jobname='ade' where jobname=@query
END
// Executing the Stored Procedure
exec SP_pro2
// To see the whole table information
select * from job_addTo store the result coming from a select command into a variable for further use
