db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bryan Pendleton <bpendle...@amberpoint.com>
Subject Re: Timestamp error
Date Fri, 21 Mar 2008 15:35:13 GMT
> java.sql.SQLException: Column '0' not found.

It sounds like you are calling rs.getString("0"). If you want to get
the first column in the result, you should know that columns
in the JDBC api are numbered starting at 1:
http://java.sun.com/j2se/1.4.2/docs/api/java/sql/ResultSet.html#getString(int)

Perhaps you should call rs.getString(1) instead.

thanks,

bryan



Mime
View raw message