> Date: Fri, 22 Feb 2002 15:02:15 -0000
> From: Mark Buckle <[EMAIL PROTECTED]>
> 
> Both are in there, not all drivers implement data_sources, and to
> get column names for a table you have to first execute a select *
> from tbl where 1=0, and then retrieve the column names as attributes
> of the statement handle - the oreilly dbi book tells you how

Thanks for these pointers, and also for the sample code: very helpful.
I can't _believe_ I missed the DBI->data_sources() method ... there it
is, right at the very top of the DBI manual page.  Urrrh!  I think I
have an excuse with tables() though -- I've just downloaded a new DBI
and it's marked as *NEW*, so I think it really wansn't there last time
I looked.

Thanks.

 _/|_    _______________________________________________________________
/o ) \/  Mike Taylor   <[EMAIL PROTECTED]>   www.miketaylor.org.uk
)_v__/\  "How can I lie back and think of England when I don't even
         know who's in the team?" -- Billy Bragg.

Reply via email to