This week's book giveaway is in the General Computing forum. We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line! See this thread for details.
hi. i am getting the following error when compiling: cannot find method "first()" ------- the code is this: ... ResultSet rs = stmt.executeQuery("valid sql statement here"); if (rs.first()) { ... and at the top of the file i have imported the java.sql package like so: import java.sql.*; ------ so how come i can't call first() when it found the class ResultSet? and is there a better way to determine if anything was returned by the query? thanks! ed
ed copony
Greenhorn
Joined: Nov 29, 2001
Posts: 10
posted
0
after more digging i see that my driver does not support the first() method -- i guess that explains it. (i'll just be in here talking to myself if anyone needs me.)