Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^6: How to add columns with new row name using perl from mysql query?

by finddata (Sexton)
on Apr 06, 2017 at 12:21 UTC ( #1187265=note: print w/replies, xml ) Need Help??


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?

It shows error message as Could not in7sert_run_pend data
  • 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 (Pope) 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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1187265]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (6)
As of 2019-12-05 19:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Strict and warnings: which comes first?



    Results (151 votes). Check out past polls.

    Notices?