oracle 从现有表创建重复表
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/8997399/
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
Creating Duplicate Table From Existing Table
提问by Lucifer
Possible Duplicate:
SELECT INTO using Oracle
可能的重复:
SELECT INTO 使用 Oracle
I have one table in my oracle database. I want to create one table with another name, but containing same data. How to achieve this ?
我的 oracle 数据库中有一张表。我想用另一个名称创建一个表,但包含相同的数据。如何实现这一目标?
回答by Gurujothi.D
Use this query to create the new table with the values from existing table
使用此查询使用现有表中的值创建新表
CREATE TABLE New_Table_name AS SELECT * FROM Existing_table_Name;
Now you can get all the values from existing table into newly created table.
现在您可以将现有表中的所有值获取到新创建的表中。