1.

Which statement exits a labeled flow-control construct?(a) DESCRIBE(b) LEAVE(c) LOOP(d) RETURNThis question was posed to me in an internship interview.Query is from Compound Statement Syntax in chapter SQL Syntax of MySQL

Answer» RIGHT OPTION is (b) LEAVE

To explain: The ‘LEAVE’ statement is used to exit a labeled flow-control CONSTRUCT. This statement must appear within the construct that has the given label. The syntax of the statement is ‘LEAVE label’.


Discussion

No Comment Found

Related InterviewSolutions