我们可以在不使用create语句的情况下在oracle中创建表吗? [英] can we create a table in oracle without using create statement?
本文介绍了我们可以在不使用create语句的情况下在oracle中创建表吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在面试中遇到了这个问题
解决方案
在标准SQL中,没有办法在不创建表的情况下使用表。有一个基于select语句创建表的快捷方式。CREATE TABLE new_tbl SELECT * FROM old_tbl但是这也基于CREATE TABLE命令......
如果没有CREATE TABLE(最初来自SyBase),还有一个扩展名< pre lang =SQL> INSERT INTO new_tbl SELECT * FROM old_tbl这适用于问题中的类别,幸运的是它得到了Oracle PL / SQL的支持!!!
所以答案是肯定的......
i faced this que in an interview
解决方案
In standard SQL there is no way to use a table without creating it. There is a shortcut to create table based on a select statement.CREATE TABLE new_tbl SELECT * FROM old_tblHowever this also based on the CREATE TABLE command...
There is also an extension to do it without CREATE TABLE (originally from SyBase)INSERT INTO new_tbl SELECT * FROM old_tblThis is fit into the category in the question, and fortunately it's supported by Oracle's PL/SQL!!!
So the answer is yes...
这篇关于我们可以在不使用create语句的情况下在oracle中创建表吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文