usertable(userID,psd) 添加新用户或修改密码时调用触发器限制密码长度为6到12~~~~~~~~~~
解决方案 »
- Java如何访问Oracle包里的变量
- 请教大家Oracle入门到精通的学习路线
- 急求ORACLE恢复的问题
- 如何将Oracle数据库中的Unicode转换为中文
- Q
- 如果将DBA角色赋予某个用户?
- 新人急问:可以在同一台机器上的一个系统下同时装oracle9i和sql server2000吗?谢谢!
- 怎样查询当前插入的记录序号?
- 关于OID的一些基础不太明白的地方请教
- 哪里有DEVELOPER/2000的电子版本的教材下载!
- oracle 11g卸载问题
- 一个Asp.net 网站,oracle 数据库装在服务器上,在局域网里的另一台电脑要连这个数据库,连接字符串中的用户名和密码应该写什么的用户名和密码呀??
before insert or update of PWD on usertable for each row
begin
if(length(:new.PWD)<=6 or length(:new.PWD)>12) then then
raise_application_error(-20001,'密码长度不正确!');
end if;
end;
/
我的一直有错误……
肿么两个then?
before insert or update of PWD
on usertable for each row
begin
if length(:new.PWD)<7 then
raise_application_error(-20500,"PWD length wrong");
end if;
end;
改后还是不对啊……create or replace trigger cfg
before insert or update of PWD
on usertable for each row
begin
if length(:new.PWD)<=6 then
raise_application_error(-20500,"PWD length wrong");
end if;
end;