What's the meaning of the BEGIN...END statements in Stored Procedures?
At the moment, I just have a BEGIN at the start and an END at the finish, but I've seen several examples where BEGIN..END is used inside IF..THEN statements
Whilst I was googling the use of BEGIN..END I then discovered this thread albeit about MSSQL, I presume, where several posts say they don't use them at all.Code:If(condition=true) THEN BEGIN .... END ELSE BEGIN .... END END IF;
What is the advantage / disadvantage of using them and what is the most appropriate way to use them? One block or seperated by conditions?



LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks