RosettaCodeData/Task/Loops-While/PL-SQL/loops-while.sql

11 lines
144 B
MySQL
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
set serveroutput on
declare
n number := 1024;
begin
while n > 0 loop
dbms_output.put_line(n);
n := trunc(n / 2);
end loop;
end;
/