MySQL 中的包 (Oracle) 是否有任何等价物

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/5296841/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-18 23:02:55  来源:igfitidea点击:

Is there any equivalent for packages (Oracle) in MySQL

mysqloracle

提问by Svathi

I'm converting procedures from Oracle to MySQL. Is there any feature like packages in MySQL ? If it is not there, what is the substitute for packages in MySQL ?

我正在将过程从 Oracle 转换为 MySQL。MySQL 中是否有任何类似包的功能?如果它不存在,MySQL 中包的替代品是什么?

回答by Frosty Z

Unfortunately there is no equivalent AFAIK.

不幸的是,没有等效的 AFAIK。

See this MySQL bug : Bug #11696 - Please add CREATE MODULE syntax, or Oracle PACKAGE equivalent

请参阅此 MySQL 错误:错误 #11696 - 请添加 CREATE MODULE 语法,或 Oracle PACKAGE 等效语法

回答by symcbean

Mysql supports stored procedures- the namespace of this is at the database level - there is no explicit support for creating namespaces at a lower level, and the '.' scope operator seeprates databases and objects.

Mysql 支持存储过程——它的命名空间是在数据库级别——没有明确支持在较低级别创建命名空间,以及“。” 范围运算符查看数据库和对象。

So there is no equivalent entity in MySQL to an Oracle package.

因此,MySQL 中没有与 Oracle 包等效的实体。