show-notice
hide-notice

Wednesday, 17 July 2013

BEGIN...END operator in sql server


Introduction

To indicate that your Statement covers more than one line, start it with the BEGIN keyword. Then you must use the END keyword to indicate where the Statement ends. In this case, the formula of a conditional statement would appear as follows:


Keyword Expression
BEGIN
      Statement Line 1
      Statement Line 2
     
      Statement Line n
END
 

You can still use the BEGIN...END combination even if your Statement covers only one line:


Keyword Expression
BEGIN
      Statement
END
 
 

SHARE THIS POST   

0 comments :

Post a Comment

Design by Gohilinfotech | www.gohilinfotech.blogspot.com