Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

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

by poj (Abbot)
on Apr 06, 2017 at 12:29 UTC ( #1187268=note: print w/replies, xml ) Need Help??


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

Is it possible..

Yes

Without modifying while loop..

No ( unless you make the SQL more complex )

Note the error message for your select is still wrong here

$sth->execute() or print "Could not in7sert_run_pend data"; 
poj
  • Comment on Re^3: How to add columns with new row name using perl from mysql query?

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

    Here i should not change the while loop.Without changing while loop, by using only sql query how can i do it?Will adding duplicate entries of the mysql rows and unique it will helps me.If it helps how can i do it mysql query.

      by using only sql query how can i do it

      Not a Perl question then ?

      Develop your SQL in MySQL Workbench (or other client) and then when it works put it in your perl script

      poj

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (8)
As of 2020-01-21 13:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?