看板 Database 關於我們 聯絡資訊
我想寫一個語法控制統計數量 select id_no,count(id_no) as cal from chart where id_no like 'E1%' and count(id_no)<>1 group by id_no; 我想統計id_no但有cal的結果為一的不列為查詢條件, 但oracle給我錯誤ORA-00934:group function is not allowd here 若去掉and count(id_no)<>1卻又可以查到結果但有cal為1的結果,請問各位版友 為何加入額外條件會有如此錯誤? -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 59.127.134.223