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       Ask Questions on ANYTHING, that arise in your Daily Life at     FORUM9.COM
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 to find total column from a resultset?
 Question Submitted By :: Sansbru
I also faced this Question!!     Rank Answer Posted By  
 
  Re: How to find total column from a resultset?
Answer
# 1
int columnCnt = java.sql.ResultSetMetaData.getColumnCount();
 
Is This Answer Correct ?    1 Yes 0 No
Shankar
 
  Re: How to find total column from a resultset?
Answer
# 2
while(rs.next())
{
getInt(1);
}
 
Is This Answer Correct ?    0 Yes 1 No
Ramu
 
 
 
  Re: How to find total column from a resultset?
Answer
# 3
rs.getRow();
 
Is This Answer Correct ?    0 Yes 1 No
Thiyagu
 
  Re: How to find total column from a resultset?
Answer
# 4
resultSet.getMetaData().getColumnCount().
 
Is This Answer Correct ?    1 Yes 0 No
Manik Chand
 
  Re: How to find total column from a resultset?
Answer
# 5
First one is the correct ans.2nd & 3rd will be return 
toatal no rows not column.
 
Is This Answer Correct ?    0 Yes 0 No
Tathagata
 

 
 
 
Other JDBC Interview Questions
 
  Question Asked @ Answers
 
I have getting problem to calling stored procedure from Mysql through JSP. Please help me.  1
Diff bet.. Function and Trigger? Logica-CMG3
What type of driver called is pure Java driver? Vertex3
What is the exception thrown by JDBC ?  6
what is call level interface?  1
Diff. types of triggers.. Logica-CMG4
How is database middleware used to access legacy databases?  1
write down exceptions those appear in java programs when u write JDBC Programs?  2
How to get the data from a table into a buffer?  2
What are the different types of statements?  2
is that compulsory to have Primarykey-forignkey for joints (outer inner,equal) IonIdea2
How to get a whole row of data at once?  1
What are the Normalization Rules?  2
Is there any limitation for no of statments executed with in batchupdate? HSBC2
How is jndi useful for Database connection?  1
What is execute(), executeUpdate() and executeQuery() methods?  3
Statement, PrepareStatement and Callable all these are interfaces. Thought it is a interface how come we are creating objects and calling methods("preparestatement()") in it. In which class this method is defined. Please let me know. Thanks in advance. example: PreparedStatement pre = con.prepareStatement( "UPDATE COFFEES SET SALES = ? WHERE COF_NAME LIKE ?");  2
Which Driver is preferable for using JDBC API in Applets?  1
what is callable statement? Infogain5
what does the method Class.forName returns? Siemens4
 
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