【发布时间】:2021-12-28 12:45:33
【问题描述】:
创建随机密码的功能 Genpass(p 整数, p 大写 p 小写 p 特殊字符) 返回密码 varchar2; 选择 Genpassword(2,2,1,2) 它包含2个数字,2个大写字符,特殊字符如#和2个数字;
【问题讨论】:
-
你有什么问题?
-
我的问题是关于随机密码生成功能,它在 plsql 中创建包含数字、字母和特殊字符的密码
-
你的问题不清楚。你需要一个函数吗?你有一个不起作用的功能吗?到目前为止你的努力是什么?你在哪里卡住了?
-
创建或替换 FUNCTION GENPWD( PNOIT IN NUMBER, PSC IN NUMBER, PL IN NUMBER, PU IN NUMBER) return varchar2 is pwd varchar2(11);开始选择 pwd:= dbms_random.string('U',pu), pwd:=dbms_random.string('l',pl), pwd:= dbms_random.string('x',psc), pwd:= dbms_random。来自双重的字符串('a',pnoit);返回密码;结束;
标签: function random plsql passwords