1.

Which statement terminates the execution of a function?(a) BEGIN…END(b) RETURN(c) ITERATE(d) LOOPThis question was addressed to me in my homework.My question is taken from Compound Statement Syntax in section SQL Syntax of MySQL

Answer»

The CORRECT answer is (b) RETURN

Easiest explanation: The ‘RETURN’ STATEMENT is used only within stored functions, not stored procedures, triggers, or events. When this statement is executed it TERMINATES execution of the function.



Discussion

No Comment Found

Related InterviewSolutions