首页 >数据库 >mysql教程 >pl/sql九九乘法表

pl/sql九九乘法表

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB原创
2016-06-07 14:57:271858浏览

无详细内容 无 declare i integer; j integer;begin -- 9*9乘法表 for i in 1..9 loop for j in 1..i loop dbms_output.put(i||'*'||j||'='||i*j||chr(9)); end loop; dbms_output.new_line; end loop;end;

declare 
  i integer;
  j integer;
begin
  -- 9*9乘法表
  for i in 1..9 loop
    for j in 1..i loop
      dbms_output.put(i||'*'||j||'='||i*j||chr(9));
    end loop;
    dbms_output.new_line;
  end loop;
end;
声明:
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn