Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^5: Getting a list of columns from a MySQL Table

by palette (Scribe)
on Jun 14, 2006 at 13:19 UTC ( [id://555238]=note: print w/replies, xml ) Need Help??


in reply to Re^4: Getting a list of columns from a MySQL Table
in thread Getting a list of columns from a MySQL Table

This node falls below the community's threshold of quality. You may see it by logging in.
  • Comment on Re^5: Getting a list of columns from a MySQL Table

Replies are listed 'Best First'.
Re^6: Getting a list of columns from a MySQL Table
by davorg (Chancellor) on Jun 14, 2006 at 13:33 UTC
    I tried using $dbh->prepare('Desc table_name')

    You should have tried using the Catalogue Methods as I suggested above.

    But I also want the list of primary key and other stuffs to be returned

    The Catalogue Methods will give you all of that. Why not try them?

    --
    <http://dave.org.uk>

    "The first rule of Perl club is you do not talk about Perl club."
    -- Chip Salzenberg

    A reply falls below the community's threshold of quality. You may see it by logging in.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2024-04-25 17:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found