前面的sql语句有问题 你是不是用什么函数了
给大家看看你的sql语句吧

解决方案 »

  1.   

    CREATE OR REPLACE VIEW "CG"."v_gjjzqje_tyzqxs" ("zqje", "zqxs", "kjqj")
    as 
    select
    sum(nvl(a.zqbj),0) ,
       c.tyzqxs ,
       b.kjqj
    from q_ywlsb b,q_zqgjj_print a,v_zqxs c
        where a.ywlsh = b.ywlsh and 
     b.isdelete is null and
     a.zqxs = c.zqxs
    group by b.kjqj,c.zqxs我的也报这个错
      

  2.   

    CREATE OR REPLACE VIEW "CG"."v_gjjzqje_tyzqxs" ("zqje", "zqxs", "kjqj")
    as 
    select
    sum(nvl(a.zqbj,0)) ,
       c.tyzqxs ,
       b.kjqj
    from q_ywlsb b,q_zqgjj_print a,v_zqxs c
        where a.ywlsh = b.ywlsh and 
     b.isdelete is null and
     a.zqxs = c.zqxs
    group by b.kjqj,c.zqxs
      

  3.   

    楼上已经回答了问题。select语句中c.tyzqxs必须要在group by中出现才行。
      

  4.   

    select语句中c.tyzqxs也要在group by中出现
      

  5.   

    在select语句中出现的列也要在group by中出现