我的一个函数返回的是long型变量,我想用select语句调用这个函数,结果报错ORA-00997:illegal use of LONG datatype
高手们来帮个忙啊,急用

解决方案 »

  1.   

    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.  
      

  2.   

    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.