"AS"和"AS"之间有什么区别和"IS"在Oracle存储过程中? [英] What is the difference between "AS" and "IS" in an Oracle stored procedure?
本文介绍了"AS"和"AS"之间有什么区别和"IS"在Oracle存储过程中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我看到Oracle过程有时用"AS"编写,有时用"IS"关键字编写.
I see Oracle procedures sometimes written with "AS", and sometimes with "IS" keyword.
CREATE OR REPLACE Procedure TESTUSER.KILLINSTANCE (INSTANCEID integer) **AS**
...
vs.
CREATE OR REPLACE Procedure TESTUSER.KILLINSTANCE (INSTANCEID integer) **IS**
...
两者之间有区别吗?
显然,这两者之间没有功能上的区别,但是当SP是软件包的一部分时,有些人遵循约定使用"AS",而当软件包不是SP时,则遵循"IS".或反过来.嗯.
Apparently, there is no functional difference between the two, but some people follow a convention to use "AS" when the SP is part of a package and "IS" when it is not. Or the other way 'round. Meh.
推荐答案
没有问题.它们是提供的同义词,以使您的代码更具可读性:
None whatsover. They are synonyms supplied to make your code more readable:
功能f是...
创建视图与选择...
CREATE VIEW v AS SELECT ...
这篇关于"AS"和"AS"之间有什么区别和"IS"在Oracle存储过程中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文