Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

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 ( [id://1187266]=note: print w/replies, xml ) Need Help??


in reply to Re^6: 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?

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.

Replies are listed 'Best First'.
Re^8: How to add columns with new row name using perl from mysql query?
by finddata (Sexton) on Apr 06, 2017 at 12:27 UTC
    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.

        Am newbie in using alias how to use alias for this query?.I had google it but i didnt get good view.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (5)
As of 2024-03-29 10:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found