SELECT list is not in GROUP BY clause and contains nonaggregated column … incompatible with sql_mode=only_full_group_by

前端 未结 19 3243
灰色年华
灰色年华 2020-11-22 11:28

AM using MySQL 5.7.13 on my windows PC with WAMP Server

Here my Problem is While executing this query

SELECT *
FROM `tbl_customer_pod_uploads`
WHERE          


        
19条回答
  •  遥遥无期
    2020-11-22 11:42

    Hi instead of taking all columns, just take what you need by using ANY_VALUE(column_name). It is working perfectly. Just check.

    E.g.:

    SELECT proof_type,any_value("customer_name") as customer_name
    FROM `tbl_customer_pod_uploads`
    WHERE `load_id` = '78' AND `status` = 'Active' GROUP BY `proof_type`
    

提交回复
热议问题