Ok I typed this to google and no answer
Here comes my question
Assume that inside a stored procedure I have the following selects would it make any difference putting ;
at the end of select statements or not?
I mean if I do not put ;
at the end of statement what happens? And if I put what happens?
begin
declare @param_1 int;
declare @param_2 int;
select @param_1 = col1 from mytable
select @param_2 = col2 from mytable
end
Case 1 above no ; at the end
begin
declare @param_1 int;
declare @param_2 int;
select @param_1 = col1 from mytable;
select @param_2 = col2 from mytable;
end
Case 2 above ; at the end
I am not asking for this particular case. It will obviously have no effect on this example but in run time what difference does it make ? I mean does it complete it then move next or what
Thanks for the answers