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

Re: (Ovid) Re(3): How do you get Perl::DBI to do a desc table_name?

by mpeppler (Vicar)
on Mar 27, 2002 at 20:56 UTC ( [id://154817]=note: print w/replies, xml ) Need Help??


in reply to (Ovid) Re(3): How do you get Perl::DBI to do a desc table_name?
in thread How do you get Perl::DBI to do a desc table_name?

Just execute a query with a false where clause:
select * from ... where 1=0
This will return an empty result set, but you'll still get all the column headers, names, etc.

Michael

  • Comment on Re: (Ovid) Re(3): How do you get Perl::DBI to do a desc table_name?
  • Download Code

Log In?
Username:
Password:

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

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

    No recent polls found