====== WHILE Statement - PL/HQL Reference ====== WHILE statement executes one or more statements while the condition is true. Syntax: [< **Examples:** -- Oracle, PostgreSQL, Netezza WHILE count > 0 LOOP count := count - 1; END LOOP; -- DB2, Teradata, MySQL WHILE count > 0 DO SET count = count - 1; END WHILE; -- SQL Server WHILE count > 0 BEGIN SET count = count - 1; END **Compatibility:** Oracle, Teradata, IBM DB2, Microsoft SQL Server, MySQL, PostgreSQL and Netezza.