我在asp.net中运行一个select 查询语句,这个语句在oracle的sqlplus中运行没有问题,
但在程序中运行就出现如下错误:
ORA-00972: identifier is too long意思是标示太长,不知道怎么解决,从网上找不到相关资料,快死了!

解决方案 »

  1.   

    http://community.csdn.net/Expert/topic/4452/4452213.xml?temp=.1089746
      

  2.   

    试试这个
    http://www.orafaq.com/forum/t/52844/2/You have a double quotation  (") at the end of this line that does not belong there:A.RELATIONSHIP_PARTY_ID CONTACT_ID, A.CUSTOMER_PARTY_ID CUSTOMER_ID, " This may not be the only additional error, since you have not provided create table statements for your data structures for testing. It also helps if you provide a copy and paste of the actual run, including all error messages. The error code should be accompanied by the line that raised the error with an asterisk underneath the point in that line where the error was raised. Please see the sticky at the top of the forum for what we expect.
      

  3.   

    还是一样的错误,这是我的语句SELECT SUM(P) AS TP, SUM(RS) AS TRS, SUM(RS)/SUM(P) AS JLXS, MAX(QIN) AS FRMQ, 
    (SELECT YMDH  FROM TBL_FRPC  WHERE  FRID='a'
    AND QIN=(SELECT  MAX(QIN) FROM TBL_FRPC WHERE FRID='a')
     AND ROWNUM<=1) AS FRMQD, (SELECT PA FROM TBL_FRPR WHERE FRID='a') AS PA 
     FROM TBL_FRPC WHERE FRID='a' GROUP BY FRID
      

  4.   

    SELECT
    FRID,--这里加id,用于group
    SUM(P) AS TP, 
    SUM(RS) AS TRS, 
    SUM(RS)/SUM(P) AS JLXS, 
    MAX(QIN) AS FRMQ, (SELECT YMDH  FROM TBL_FRPC  WHERE  FRID='a'
    AND QIN=(SELECT  MAX(QIN) FROM TBL_FRPC WHERE FRID='a')
     AND ROWNUM<=1) AS FRMQD,
     
    (SELECT PA FROM TBL_FRPR WHERE FRID='a') AS PA  FROM TBL_FRPC WHERE FRID='a' GROUP BY FRID--sql语句中有聚合函数时,group by后面的字段只能是不在聚合函数中的字段试试这样