Block of statement should start with keyword BEGIN and close with keyword END.IF ELSE statement in SQL can conditionally handle a single T-SQL statement or block of T-SQL statements. The condition should be Boolean Expression, i.e., condition results in Boolean value when evaluated.Once, either IF T-SQL statements or ELSE T-SQL statement is executed, then other unconditional T-SQL statements continues execution.If the condition evaluates to False, then T-SQL statements followed by ELSE keyword will be executed.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |