扫一扫
分享文章到微信
扫一扫
关注官方公众号
至顶头条
作者:builder.com.cn 2007年4月26日
关键字: ORACLE
在本页阅读全文(共2页)
SQL> CREATE TABLE my_views AS
2 SELECT * FROM user_views;
SELECT * FROM user_views
*
ERROR at line 2:
ORA-00997: illegal use of LONG datatype
SQL> SET LONG 100000
SQL> COPY FROM hr/hr@orcl CREATE my_views -
>USING select * from user_views;
Array fetch/bind size is 15. (arraysize is 15)
Will commit when done. (copycommit is 0)
Maximum long size is 100000. (long is 100000)
Table MY_VIEWS created.
1 rows selected from hr@orcl.
1 rows inserted into MY_VIEWS.
1 rows committed into MY_VIEWS at DEFAULT HOST connection.
SQL> descmy_views;
Name Null? Type
----------------------------------------- -------- ----------------------------
VIEW_NAME NOT NULL VARCHAR2(30)
TEXT_LENGTH NUMBER(38)
TEXT LONG
TYPE_TEXT_LENGTH NUMBER(38)
TYPE_TEXT VARCHAR2(4000)
OID_TEXT_LENGTH NUMBER(38)
OID_TEXT VARCHAR2(4000)
VIEW_TYPE_OWNER VARCHAR2(30)
VIEW_TYPE VARCHAR2(30)
SUPERVIEW_NAME VARCHAR2(30)
SQL> spool off
如果您非常迫切的想了解IT领域最新产品与技术信息,那么订阅至顶网技术邮件将是您的最佳途径之一。