executeQuery() in Statement class ....
From: Raquel (raquel_at_nospam.com)
Date: 06/18/04
- Next message: Raquel: "Re: simple max function?"
- Previous message: Roedy Green: "Re: simple max function?"
- Next in thread: Gerd Nachtsheim: "Re: executeQuery() in Statement class ...."
- Reply: Gerd Nachtsheim: "Re: executeQuery() in Statement class ...."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 18 Jun 2004 01:33:36 -0400
This piece of code in a JDBC program executes fine:
Statement st = conn.createStatement();
ResultSet rec = st.executeQuery( "SELECT DEPTNO FROM TABLE1");
But when I see the documentation for "Statement" at the following URL, it
does not show executeQuery() as a method at all in Statement class. The
closest method available is execute(). So, how does executeQuery work
successfully?
http://java.sun.com/j2se/1.4.2/docs/api/java/beans/Statement.html
Actually I am confused by the description of execute(). It says:
The execute method finds a method whose name is the same as the methodName
property, and invokes the method on the target.
Could someone explain to me what this is? Probably this is the answer to
my original question.
TIA
Raquel.
- Next message: Raquel: "Re: simple max function?"
- Previous message: Roedy Green: "Re: simple max function?"
- Next in thread: Gerd Nachtsheim: "Re: executeQuery() in Statement class ...."
- Reply: Gerd Nachtsheim: "Re: executeQuery() in Statement class ...."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|