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

        <bdo id='QiQ4x'></bdo><ul id='QiQ4x'></ul>
        <legend id='QiQ4x'><style id='QiQ4x'><dir id='QiQ4x'><q id='QiQ4x'></q></dir></style></legend>

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

      1. <tfoot id='QiQ4x'></tfoot>

        如何在 SQL*Plus 中获取 Oracle 创建表语句

        How to get Oracle create table statement in SQL*Plus(如何在 SQL*Plus 中获取 Oracle 创建表语句)
        <legend id='Of0z1'><style id='Of0z1'><dir id='Of0z1'><q id='Of0z1'></q></dir></style></legend>

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

          <bdo id='Of0z1'></bdo><ul id='Of0z1'></ul>
          <tfoot id='Of0z1'></tfoot>
            <tbody id='Of0z1'></tbody>

                <i id='Of0z1'><tr id='Of0z1'><dt id='Of0z1'><q id='Of0z1'><span id='Of0z1'><b id='Of0z1'><form id='Of0z1'><ins id='Of0z1'></ins><ul id='Of0z1'></ul><sub id='Of0z1'></sub></form><legend id='Of0z1'></legend><bdo id='Of0z1'><pre id='Of0z1'><center id='Of0z1'></center></pre></bdo></b><th id='Of0z1'></th></span></q></dt></tr></i><div id='Of0z1'><tfoot id='Of0z1'></tfoot><dl id='Of0z1'><fieldset id='Of0z1'></fieldset></dl></div>
                • 本文介绍了如何在 SQL*Plus 中获取 Oracle 创建表语句的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我有一个存在于 Oracle 数据库中的表,但没有显示在工具 SQL Developer 的表列表中.但是,如果我转到 SQL*Plus,然后执行

                  I have a table that exists in an Oracle database, but doesn't show on my list of tables in the tool SQL Developer. However, if I go to SQL*Plus, and do a

                  select table_name from user_tables;
                  

                  我列出了表格.如果我输入

                  I get the table listed. If I type

                  desc snp_clearinghouse;
                  

                  它向我展示了字段.我想得到 create 语句,因为我需要添加一个字段.我可以修改表来添加字段,但我仍然需要将 create 语句放入我们的源代码管理中.什么pl/sql语句用于获取表的create语句?

                  it shows me the fields. I'd like to get the create statement, because I need to add a field. I can modify the table to add the field, but I still need the create statement to put into our source control. What pl/sql statement is used to get the create statement for a table?

                  推荐答案

                  来自 获取表和索引 DDL简单的方法:

                  set heading off;
                  set echo off;
                  Set pages 999;
                  set long 90000;
                  
                  spool ddl_list.sql
                  
                  select dbms_metadata.get_ddl('TABLE','DEPT','SCOTT') from dual;
                  
                  select dbms_metadata.get_ddl('INDEX','DEPT_IDX','SCOTT') from dual;
                  
                  spool off;
                  

                  这篇关于如何在 SQL*Plus 中获取 Oracle 创建表语句的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  Oracle PL/SQL - Raise User-Defined Exception With Custom SQLERRM(Oracle PL/SQL - 使用自定义 SQLERRM 引发用户定义的异常)
                  Oracle: is there a tool to trace queries, like Profiler for sql server?(Oracle:是否有跟踪查询的工具,例如用于 sql server 的 Profiler?)
                  SELECT INTO using Oracle(使用 Oracle SELECT INTO)
                  How to handle Day Light Saving in Oracle database(如何在 Oracle 数据库中处理夏令时)
                  PL/SQL - Use quot;Listquot; Variable in Where In Clause(PL/SQL - 使用“列表Where In 子句中的变量)
                  Oracle: Import CSV file(Oracle:导入 CSV 文件)

                  1. <small id='qWU5Q'></small><noframes id='qWU5Q'>

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

                        <legend id='qWU5Q'><style id='qWU5Q'><dir id='qWU5Q'><q id='qWU5Q'></q></dir></style></legend>
                        <tfoot id='qWU5Q'></tfoot>