Dynamic SQL query giving an error (syntax to use near ' ) in PhpMyAdmin other versions except (5.2.0, 5.1.1, 5.0.0)
I want to transpose mysql rows to columns using Dynamic query i accomplished the query with expected results. the Query is working in my localhost PhpMyAdmin version 5.2.0 without any error but I’am getting a syntax error in other PhpMyAdmin versions. SET @sql = NULL; SELECT GROUP_CONCAT(DISTINCT CONCAT( ‘SUM( CASE WHEN product_code = "’, product_code,… Read More Dynamic SQL query giving an error (syntax to use near ' ) in PhpMyAdmin other versions except (5.2.0, 5.1.1, 5.0.0)