Expression #2 of SELECT SUM()

เกี่ยวกับ ปัญหาการใช้งาน การติดตั้ง ฐานข้อมูล MySql Oracle MSSQL ect...
การเขียน คำสั่ง SQL เพื่อดึกข้อมูล บอร์ดนี้ควรระบุโครงสร้างตารางของท่านในคำถามด้วยนะ

Moderator: mindphp

ภาพประจำตัวสมาชิก
thatsawan
PHP VIP Members
PHP VIP Members
โพสต์: 28508
ลงทะเบียนเมื่อ: 31/03/2014 10:02 am
ติดต่อ:

Expression #2 of SELECT SUM()

โพสต์ที่ยังไม่ได้อ่าน โดย thatsawan »

Expression #2 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'picture_***.d.buy_date' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by [1055]

SQL

SELECT d.oder_id, d.buy_date,SUM(d.sum) as sum ,SUM(d.price) as price FROM (phpbb_m_pt_buy_photo_detail d) GROUP BY d.oder_id
  • Similar Topics
    ตอบกลับ
    แสดง
    โพสต์ล่าสุด

ผู้ใช้งานขณะนี้

สมาชิกกำลังดูบอร์ดนี้: ไม่มีสมาชิกใหม่ และบุคลทั่วไป 79