日期:2014-05-17 浏览次数:20866 次
--建表语句 CREATE TABLE TEST_EXPORT ( ID VARCHAR2(50) NOT NULL, NAME VARCHAR2(50), REMARK VARCHAR2(50), PRIMARY KEY (ID) ) --序列 CREATE SEQUENCE "SCOTT"."TEST_SEQ" MINVALUE 1 MAXVALUE 999999999 INCREMENT BY 1 START WITH 1 CACHE 2000 NOORDER NOCYCLE 最好是有效率点的 谢谢
DROP TABLE TEST_EXPORT PURGE; CREATE TABLE TEST_EXPORT NOLOGGING PARALLEL 4 AS SELECT LEVEL AS ID, LEVEL------解决方案--------------------'NAME' AS NAME, LEVEL------解决方案--------------------'REMARK' AS REMARK FROM DUAL CONNECT BY LEVEL<=10000000;