Mysql: pivot table working in sqlfiddle but not working in phpmyadmin
问题 i have a pivot table code that worked in the sqlfiddle, I can't seem to get the query working when I bring it back onto my database in phpmyadmin. Here is my sqlfiddle. when I run it in my localHost phpmyadmin, the query becomes something like below: SET @@group_concat_max_len = 5000;# MySQL returned an empty result set (i.e. zero rows). SET @sql = NULL;# MySQL returned an empty result set (i.e. zero rows). SELECT GROUP_CONCAT(DISTINCT CONCAT('MAX(IF(hw_id = ', hw_id, ', score, -1)) AS ',