While Loop In Sql Procedure. The WHILE LOOP statement ends when the condition becomes FALSE or