is 与 as pl/sql
我认为对于函数和过程,oracle 将“is”和“as”视为相同。我尝试使用“pl/sql is vs as”进行谷歌搜索,并得到以下链接,其中表明两者是相同的。
PL/SQL 的 IS 与 AS 关键字Oracle函数或过程创建
但我发现http: //www.adp-gmbh.ch/ora/plsql/coll/declaration.html#index_by 这似乎表明存在差异。有人可以(列出/指向我一个链接)使用“is/as”产生影响的其他上下文吗?
谢谢。
I thought that oracle treats both "is" and "as" same for functions and procedures.I tried googling with "pl/sql is vs as" and got the following link which says both are the same.
IS vs AS keywords for PL/SQL Oracle Function or Procedure Creation
But I found http://www.adp-gmbh.ch/ora/plsql/coll/declaration.html#index_by which seems to indicate there is a difference. Could somebody (list/point me to a link) the other contexts where using "is/as" makes a difference?.
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
举例来说(并非全部都是 PL/SQL):
因此,
IS
所在的地方并不总是允许AS
,而IS
所在的地方并不总是允许IS
AS
是:)我认为这只是该语言的怪癖之一。一般来说,我认为
IS
更常见,除非AS
是唯一的选项(如上面的 SQL 示例)。 Oracle 文档中的大多数示例似乎都使用IS
,我个人认为这是我的偏好,因为它在语义上更适合。参考资料:
Oracle SQL 参考 11gR1
Oracle PL/SQL 参考 11gR1
By example (not all are PL/SQL):
Therefore,
AS
is not always allowed whereIS
is, andIS
is not always allowed whereAS
is :)Just one of those quirks of the language, I think. Generally,
IS
is more common, I think, except whereAS
is the only option (as in the SQL examples above). Most of the examples in the Oracle docs seem to useIS
, and personally that's my preference as it fits better semantically, in my opinion.References:
Oracle SQL Reference 11gR1
Oracle PL/SQL Reference 11gR1