ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   To Refer this Site to Your Friends   Click Here
Google
 
Categories  >>  Software  >>  Java J2EE  >>  Java Related  >>  JDBC
 
 


 

 
 Core Java interview questions  Core Java Interview Questions
 Advanced Java interview questions  Advanced Java Interview Questions
 Swing interview questions  Swing Interview Questions
 EJB interview questions  EJB Interview Questions
 Servlets interview questions  Servlets Interview Questions
 Struts interview questions  Struts Interview Questions
 JDBC interview questions  JDBC Interview Questions
 JMS interview questions  JMS Interview Questions
 SunOne interview questions  SunOne Interview Questions
 J2EE interview questions  J2EE Interview Questions
 Weblogic interview questions  Weblogic Interview Questions
 Websphere interview questions  Websphere Interview Questions
 Java Networking interview questions  Java Networking Interview Questions
 Java J2EE AllOther interview questions  Java J2EE AllOther Interview Questions
Question
how can we get the metaData (columnNames) from a table which
has no Records..
 Question Submitted By :: Neeraj_passion2001
I also faced this Question!!     Rank Answer Posted By  
 
  Re: how can we get the metaData (columnNames) from a table which has no Records..
Answer
# 1
Hi,
You can use DatabasrMetaData class to get the databse 
information like... schenmaname, tables, columnnames, 
etc....

DatabaseMetaData metaData = new DBConnection().getMetaData
();
 
Is This Answer Correct ?    2 Yes 1 No
Sreenivas
 
  Re: how can we get the metaData (columnNames) from a table which has no Records..
Answer
# 2
we get it from ResultSetMetaData
 
Is This Answer Correct ?    1 Yes 1 No
Srinivas
 
 
 

 
 
 
Other JDBC Interview Questions
 
  Question Asked @ Answers
 
Is JDBC a language or Application?  2
what is the current version of JDBC? and explain its features?  1
commit() and rollback() methods are defined in which interface?  4
Difference between Dirty, commited ,phantom,repeatable reads?  2
How many types of JDBC drivers are there and what are they?  1
Stored procedure purpose?  2
Difference between Generic Servlet and HTTP Servlet?  7
What are the Normalization Rules?  2
write a query to select name from one table which has id,name and salary from another table which has id, sal where the salary is the second maximum Bosch2
Hi to all.. well i want to make a standalone application which can use the concept of connection pooling, constraint is that i have not to use any application server like weblogic etc. Please help me out. Thaks in advance. Huawei2
What are static and dynamic queries?  1
How to store images in database?  1
What is JDBC?  2
What are pros and cons of using of Type-2 and Type-4 Drivers over Type-1 driver? IBM4
Diff. types of triggers.. Logica-CMG4
Hi........I need to create a dropdown box using java.....this box should show the values that should be taken from the database...... Thank you....  1
how to prevent finally block from execution Bosch3
what is rowset? Marlabs3
which scenarios we go for jdbc,and which scenario we go for connection polling and wat r advantages and disadvantages using connection pooling. TCS2
what are the Different types of exceptions in JDBC?  1
 
For more JDBC Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com