当前位置: 代码迷 >> SQL >> plsql击印出99乘法表
  详细解决方案

plsql击印出99乘法表

热度:220   发布时间:2016-05-05 15:23:15.0
plsql打印出99乘法表

declare
?????? x int;
?????? y int;
begin
???? x:=1;
????
???? while x<=9 loop
?????? y:=1;
?????? while y<=x loop
???????????? dbms_output.put(y || '*' || x || '=' || x*y || '? ');
???????????? y:=y+1;
?????? end loop;
?????? dbms_output.put_line('');
?????? x:=x+1;
???? end loop;
end;

  相关解决方案