• Hi,

    There are 2 reasons,

    1. You are not executing the 2nd and 3rd. only you assign the value to stmt3.

    2. in your query, there is miss sequence of Begin - End