1.可能是字段类型,数目不一致
 2。INSERT TEST1表违反约束。

解决方案 »

  1.   

    错误如下:
    ERROR at line 1:
    ORA-00997: illegal use of LONG datatype
      

  2.   

    兩個表中有的欄位的數據類型不一樣!
    還有,在INSERT表的時候,INSERT INTO TABLE1 SELECT * FROM TABLE2 這樣的語句在
    ORACLE 中應該是盡量避免的!
      

  3.   

    LONG datatype,只能用于select 查询:
    ORA-00997 illegal use of LONG datatype
    Cause: A value of datatype LONG was used in a function or in a DISTINCT, WHERE, CONNECT BY, GROUP BY, or ORDER BY clause. A LONG value can only be used in a SELECT clause. Action: Remove the LONG value from the function or clause.
      

  4.   

    LONG datatype是不可以的,你必须先插入别的非LONG datatype字段后,然后在利用修改语法区修改LONG datatype字段
      

  5.   

    LONG columns cannot appear in certain parts of SQL statements:GROUP BY clauses, ORDER BY clauses, or CONNECT BY clauses or with the DISTINCT operator in SELECT statements 
    The UNIQUE operator of a SELECT statement 
    The column list of a CREATE CLUSTER statement 
    The CLUSTER clause of a CREATE MATERIALIZED VIEW statement 
    SQL built-in functions, expressions, or conditions 
    SELECT lists of queries containing GROUP BY clauses 
    SELECT lists of subqueries or queries combined by the UNION, INTERSECT, or MINUS set operators 
    SELECT lists of CREATE TABLE ... AS SELECT statements 
    ALTER TABLE ... MOVE statements 
    SELECT lists in subqueries in INSERT statements 其中,最后一句已说明了