最近在后台写些东东用到Oracle Objects的继承等方面的知识,翻了下Oracle的文档资料.
记录下资料的链接,方便以后查询:
9i:Basic Components of Oracle Objects
10g:Basic Components of Oracle Objects
建议先看9i,感觉9i的目录结构更加清晰.
我碰到的一些问题的解决方法(相信如果你用object type的继承,也一定会有这些问题 ^-^):
1.how to invoke overriden methods in a super type
2.PLS-00363: expression 'SELF' cannot be used as an assignment target
摘要:
All methods in an object type accept an instance of that type as their first parameter. The name of this built-in parameter is SELF. Whether declared implicitly or explicitly, SELF is always the first parameter passed to a method.
In member functions, if SELF is not declared, its parameter mode defaults to IN. However, in member procedures, if SELF is not declared, its parameter mode defaults to IN OUT.
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/195110/viewspace-746261/
,如需转载,请注明出处,否则将追究法律责任。