Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Getting a list of columns from a MySQL Table

by seattlejohn (Deacon)
on Jul 23, 2002 at 04:59 UTC ( [id://184336]=note: print w/replies, xml ) Need Help??


in reply to Getting a list of columns from a MySQL Table

After you call $sth->execute, you should be able to get the number and names of columns via
  $sth->{NUM_OF_FIELDS}
and
  $sth->{NAME}->[$n]
where $n is an index from 0..$sth->{NUM_OF_FIELDS}-1

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (3)
As of 2024-04-26 05:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found