The Artima Developer Community
Sponsored Link

Java Answers Forum
ResultSetMetadata.getTableName

2 replies on 1 page. Most recent reply: Jun 6, 2002 5:19 AM by Abhishek

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 2 replies on 1 page
Rohit

Posts: 38
Nickname: rohit
Registered: May, 2002

ResultSetMetadata.getTableName Posted: May 30, 2002 10:26 PM
Reply to this message Reply
Advertisement
How to get tableName for a given column,
i m using follwiong code

String name = rm.getColumnName(i);
String tableName=rm.getTableName(i);
columnName is coming allright but table Name is coming empty string, pls help,


Abhishek

Posts: 3
Nickname: pintoo
Registered: Jun, 2002

Re: ResultSetMetadata.getTableName Posted: Jun 6, 2002 5:16 AM
Reply to this message Reply
Plz check the value of i in the
rm.getTableName(i);
if it's their then it should
return the table name.
it returns ->
table name or "" if not applicable

Abhishek

Posts: 3
Nickname: pintoo
Registered: Jun, 2002

Re: ResultSetMetadata.getTableName Posted: Jun 6, 2002 5:19 AM
Reply to this message Reply
Plz check the value of i in the
rm.getTableName(i);

if it's their then it should
return the table name.
it returns ->
table name or "" if not applicable
Abhishek

Flat View: This topic has 2 replies on 1 page
Topic: How to read a file within an application? Previous Topic   Next Topic Topic: Exception Handling in Threads

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use