Rob Gravelle demonstrates a solution for passing MySQL dynamic field names to the group_concat function using a combination of stored proc input parameters, string concatenation, and prepared statements.

This story continues at http://www.databasejournal.com/featu...Procedures.htm