DBMS_OUTPUT.NEW_LINE 和 DBMS_OUTPUT.NEW_LINE() 区别?
这两种说法有什么区别?
dbms_output.new_line(); // with no parameters.
dbms_output.new_line; // with no parameters,no round brackets
如果存在函数重载,即使是函数名后也需要右括号和左括号。
What is the difference between these two statements?
dbms_output.new_line(); // with no parameters.
dbms_output.new_line; // with no parameters,no round brackets
If there is function overloading,even for that close and open brackets are required after function name.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
区别在于第一个公式失败,第二个公式成功:
edit
有效的是空括号...
我不知道 Oracle 何时真正开始支持此约定,但我才意识到当他们引入面向对象的东西时。除非我们包含空括号,否则类型上的某些成员函数(即方法)将无法工作,例如 XMLType 的
getClobVal()
。但对于标准过程调用来说,括号是严格可选的。Well the difference is that the first formulation fails and the second one succeeds:
edit
What does work is the empty brackets...
I don't know when Oracle actually started supprting this convention but I only became aware of it when they introduced the OO stuff. Some member functions (i.e. methods) on Types won't work unless we include the empty brackets e.g. XMLType's
getClobVal()
. But the brackets are strictly optional for the standard procedural calls.