内容简介:翻译自:https://stackoverflow.com/questions/15569844/oracle-create-temporary-table-by-a-select-statement
我试图将CREATE TABLE table_name AS SELECT ….语句与GLOBAL临时表语句混合使用.它们混合得不是很好.
我的例子错了吗?
CREATE GLOBAL TEMPORARY TABLE a AS ( SELECT * from b ) ON COMMIT PRESERVE ROWS;
它应该是:
CREATE GLOBAL TEMPORARY TABLE a ON COMMIT PRESERVE ROWS AS select * from b;
(如果您不想最初使用b中的所有数据为当前会话填充它,则添加1 = 0).
翻译自:https://stackoverflow.com/questions/15569844/oracle-create-temporary-table-by-a-select-statement
以上就是本文的全部内容,希望本文的内容对大家的学习或者工作能带来一定的帮助,也希望大家多多支持 码农网
本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。
Foundation Web Standards
Jonathan Lane、Steve Smith / Friends of ED / 21st July 2008 / $34.99
Foundation Web Standards explores the process of constructing a web site from start to finish. There is more to the process than just knowing HTML! Designers and developers must follow a proper proces......一起来看看 《Foundation Web Standards》 这本书的介绍吧!