select .sql:
update.sql
alter table dept add hash as (ora_hash(dname||'/'||loc));
点击(此处)折叠或打开
- begin
- select deptno,dname,loc,
- ora_hash(dname||'/'||loc) hash
- into :deptno,:dname,:loc,:hash
- from dept
- where deptno=10;
- end;
- /
点击(此处)折叠或打开
- update dept
- set dname=:dname
- where deptno=:deptno
- and ora_hash(dname||'/'||loc)=:hash;
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/31349667/viewspace-2124481/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/31349667/viewspace-2124481/