在Oracle中如何调用自定义的函数
展开全部
FUNC_GET_PY(),FUNC_GET_WB()是我自定义的两个获取参数拼音码和五笔码的数据库function,使用的时候就如下直接调用
update PLUS_OPERATOR p set (p.PY_CODE,p.WB_CODE)=
(select FUNC_GET_PY(c.OPER_NAME),FUNC_GET_WB(c.OPER_NAME) from CODE_OPERATOR c where c.OPER_CODE= p.OPER_CODE and c.OPER_CODE !='00')
update PLUS_OPERATOR p set (p.PY_CODE,p.WB_CODE)=
(select FUNC_GET_PY(c.OPER_NAME),FUNC_GET_WB(c.OPER_NAME) from CODE_OPERATOR c where c.OPER_CODE= p.OPER_CODE and c.OPER_CODE !='00')
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询