File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
The Mikado Method
this week in the
Agile and other Processes
How to fetch Table Name
Joined: Oct 30, 2004
Jun 29, 2006 02:11:00
I have a problme in
I am not able to fetch table name from my
. When I call,
rsmt = resultSet.getMetaData();
strTableName = rsmt.getTableName();
the strTableName does not assign with table name.
And I could read an article saying that the getTableName() method only returns meaningful information for OBDC compliant databases. For all other databases, this method returns an empty
So is there any other way to get the table name from the metadata???
Please help me if anyone has done it before..
Thanks in advance,
SCJP 1.4 & SCBCD 1.5
Joined: Jun 22, 2005
Jun 29, 2006 20:03:00
ResultSetMetaData.getTableName() return table name or "" if not applicable
>is there any other way to get the table name from the metadata???
No way, except for extracting table name from the original sql by yourself.
I agree. Here's the link:
- if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
subject: How to fetch Table Name
How to retrive Table names in a database
jtree and database
Help Regarding ResultSetMetaData
How would I dump the contents of a table to text?
Oracle JDBC drivers do not support getTableName()
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013