How to Retrieve Table Name from Statement Handle
- From: joseph_lamb@xxxxxxxxx (Lamb Joseph)
- Date: Wed, 7 May 2008 10:51:03 -0700 (PDT)
I am creating a simple tool that will query one table and retrieve the data. Then this tool will turn the data into insert statements.
I was wondering if there was a way to retrieve the table name from the statement handle?
Similar to print "SQL statement contains $sth->{NUM_OF_FIELDS} columns\n";
but like this
print "SQL statement table name is $sth->{TABLENAME} \n";
Joseph Lamb
____________________________________________________________________________________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
.
- Follow-Ups:
- Re: How to Retrieve Table Name from Statement Handle
- From: Jonathan Leffler
- Re: How to Retrieve Table Name from Statement Handle
- From: Alexander Foken
- Re: How to Retrieve Table Name from Statement Handle
- Prev by Date: RE: Unable to install DBD::ODBC on OSX Leopard 10.5.2
- Next by Date: Re: How to Retrieve Table Name from Statement Handle
- Previous by thread: (Fwd) Perl DBI and MySQL
- Next by thread: Re: How to Retrieve Table Name from Statement Handle
- Index(es):
Relevant Pages
|
|