PL/SQL用户自定义子类型操作
发布时间
阅读量:
阅读量
用户借助subtype对子类操作实例的源代码进行定义:
-- Created on 2018/3/21 by E.WANG
/*
使用subtype用定义子类型
*/
declare
subtype userName is char(20);
subtype sex is char(6);
uName userName;
userSex sex;
begin
uName := 'ewang ';
userSex := 'male';
dbms_output.put_line('user name:' || uName || 'Sex: ' || userSex);
end;
界面截取画面:

运行结果的图像展示:
全部评论 (0)
还没有任何评论哟~
