“AS"和“AS"有什么区别?和“是"在 Oracle 存储过程中? [英] What is the difference between "AS" and "IS" in an Oracle stored procedure?

查看:42
本文介绍了“AS"和“AS"有什么区别?和“是"在 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**
...

对比

CREATE OR REPLACE Procedure TESTUSER.KILLINSTANCE (INSTANCEID integer) **IS**
...

两者有区别吗?

<小时>显然,两者之间没有功能差异,但有些人遵循约定,当 SP 是包的一部分时使用AS",而当它不是时使用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 IS ...

FUNCTION f IS ...

CREATE VIEW v AS SELECT ...

CREATE VIEW v AS SELECT ...

这篇关于“AS"和“AS"有什么区别?和“是"在 Oracle 存储过程中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆