oracle手记(二)

pl/sql基础
pl/sql语句块
set serveroutput on size 10000 --设置缓冲区
declare
varchar2(10);
begin
x:
='this is ';
dbms_output.put_line (
'x的值为:'||x);
end;
分支语句结构
declare
number;
varchar2(10);
begin
a:
=2;
if a=1 then
b:
='a';
elsif a
=2 then
b:
='b';
else
b:
='c';
end if;
dbms_output.put_line(
'b的值是:'||b);
end;
/
原文地址:https://www.cnblogs.com/jinweida/p/1210284.html