从Oracle中的select中创建表

时间:2011-12-21 18:03:18

标签: sql database oracle oracle9i

我想做这样的事情:

create table NEW_TABLE (select * from OLD_TABLE where id=3582)

并从该select语句的结果列创建一个新表。

我打赌它可能在mySQL中,但如何在Oracle中完成?

1 个答案:

答案 0 :(得分:9)

试试这个:

CREATE TABLE new_table AS select * from OLD_TABLE where id=3582