1. <i id='Yuehb'><tr id='Yuehb'><dt id='Yuehb'><q id='Yuehb'><span id='Yuehb'><b id='Yuehb'><form id='Yuehb'><ins id='Yuehb'></ins><ul id='Yuehb'></ul><sub id='Yuehb'></sub></form><legend id='Yuehb'></legend><bdo id='Yuehb'><pre id='Yuehb'><center id='Yuehb'></center></pre></bdo></b><th id='Yuehb'></th></span></q></dt></tr></i><div id='Yuehb'><tfoot id='Yuehb'></tfoot><dl id='Yuehb'><fieldset id='Yuehb'></fieldset></dl></div>
      <bdo id='Yuehb'></bdo><ul id='Yuehb'></ul>

    1. <legend id='Yuehb'><style id='Yuehb'><dir id='Yuehb'><q id='Yuehb'></q></dir></style></legend>
      <tfoot id='Yuehb'></tfoot>

      <small id='Yuehb'></small><noframes id='Yuehb'>

      可以在 PL/SQL 内部创建 Oracle 数据库对象类型吗?

      Possible to create Oracle Database object types inside of PL/SQL?(可以在 PL/SQL 内部创建 Oracle 数据库对象类型吗?)

      • <bdo id='zjegf'></bdo><ul id='zjegf'></ul>

            <small id='zjegf'></small><noframes id='zjegf'>

              <i id='zjegf'><tr id='zjegf'><dt id='zjegf'><q id='zjegf'><span id='zjegf'><b id='zjegf'><form id='zjegf'><ins id='zjegf'></ins><ul id='zjegf'></ul><sub id='zjegf'></sub></form><legend id='zjegf'></legend><bdo id='zjegf'><pre id='zjegf'><center id='zjegf'></center></pre></bdo></b><th id='zjegf'></th></span></q></dt></tr></i><div id='zjegf'><tfoot id='zjegf'></tfoot><dl id='zjegf'><fieldset id='zjegf'></fieldset></dl></div>
            1. <tfoot id='zjegf'></tfoot>
                <tbody id='zjegf'></tbody>
              <legend id='zjegf'><style id='zjegf'><dir id='zjegf'><q id='zjegf'></q></dir></style></legend>
                本文介绍了可以在 PL/SQL 内部创建 Oracle 数据库对象类型吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                是否可以在 Oracle 数据库 10g 的包内创建对象类型?类似的东西:

                Is it possible to create an object type inside of a package in Oracle Database 10g? Something like:

                create or replace package my_package as 
                    type my_type as object (
                        id number(15) 
                     ); 
                end;
                

                给出:

                错误(3,9):PLS-00540:此上下文中不支持对象.

                Error(3,9): PLS-00540: object not supported in this context.

                我最终希望能够做的是使用多态性,但也允许对象访问表并使用 PL/SQL,这在包之外定义的类型中是不允许的.

                What I'm ultimately looking to be able to do is use polymorphism but also allow the objects to access tables and use PL/SQL, which isn't allowed in types defined outside of packages.

                谢谢,杰夫

                推荐答案

                来自Oracle 10g 文档:

                目前,您无法定义对象PL/SQL 块、子程序、或包.

                Currently, you cannot define object types in a PL/SQL block, subprogram, or package.

                所以,不幸的是,没有.

                So, unfortunately, no.

                这篇关于可以在 PL/SQL 内部创建 Oracle 数据库对象类型吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                相关文档推荐

                What does SQL clause quot;GROUP BY 1quot; mean?(SQL 子句“GROUP BY 1是什么意思?意思是?)
                Why Mysql#39;s Group By and Oracle#39;s Group by behaviours are different(为什么 Mysql 的 Group By 和 Oracle 的 Group by 行为不同)
                How to select the first row for each group in MySQL?(如何在MySQL中为每个组选择第一行?)
                MySQL - Fetching lowest value(MySQL - 获取最低值)
                Add and link mysql libraries in a cmakelist.txt(在 cmakelist.txt 中添加和链接 mysql 库)
                What is a good database design (schema) for a attendance database?(考勤数据库的良好数据库设计(架构)是什么?)

                    <bdo id='VeCwS'></bdo><ul id='VeCwS'></ul>
                    <i id='VeCwS'><tr id='VeCwS'><dt id='VeCwS'><q id='VeCwS'><span id='VeCwS'><b id='VeCwS'><form id='VeCwS'><ins id='VeCwS'></ins><ul id='VeCwS'></ul><sub id='VeCwS'></sub></form><legend id='VeCwS'></legend><bdo id='VeCwS'><pre id='VeCwS'><center id='VeCwS'></center></pre></bdo></b><th id='VeCwS'></th></span></q></dt></tr></i><div id='VeCwS'><tfoot id='VeCwS'></tfoot><dl id='VeCwS'><fieldset id='VeCwS'></fieldset></dl></div>

                      <tfoot id='VeCwS'></tfoot>
                      • <small id='VeCwS'></small><noframes id='VeCwS'>

                        <legend id='VeCwS'><style id='VeCwS'><dir id='VeCwS'><q id='VeCwS'></q></dir></style></legend>
                            <tbody id='VeCwS'></tbody>