SQL to Excel

Certified Associate Developer

Hi, I am tying to run the Mysql to Excel plug-in: with basic SELECT Queries it works: but if I sent something similar to this:  

SET @pivot_sql = 'SELECT * FROM report'; PREPARE stmt FROM @pivot_sql; EXECUTE stmt; DEALLOCATE PREPARE stmt; 

 it shows MariaDB syntaxis error.   any idea how workaround for this ?

  Discussion posts and replies are publicly visible