http://www.perlmonks.org?node_id=1187265


in reply to Re^5: How to add columns with new row name using perl from mysql query?
in thread How to add columns with new row name using perl from mysql query?

This node falls below the community's threshold of quality. You may see it by logging in.
  • Comment on Re^6: How to add columns with new row name using perl from mysql query?

Replies are listed 'Best First'.
Re^7: How to add columns with new row name using perl from mysql query?
by Corion (Patriarch) on Apr 06, 2017 at 12:23 UTC

    You did not show the SQL your code is running.

    Please change your code to the following to see the real error message your database gives you:

    $sth->execute or die $sth->errstr;

    ... or alternatively, as I already said, use the RaiseError flag when creating your database connection.

      Every derived table must have its own alias at /pj/ib/he/ic/ic_cd/cpps +/dv/r_dard/1.1_jan/bn/r.cgi line 920.

        So, just add the alias and you're done.

        Most likely, your SQL manual for your database will have the relevant information.