Shared Tutorials
Tutorials Shared by the Internet Community
Advertisements
| Top Tutorials | New Tutorials | Submit | Login | Register |
Tutorial Basic Detail
How to deal java.sql.SQLException: Invalid column index
Main reason of SQLException:Invalid Column Index is either you are trying to read an invalid column index from result set returned by Query or you arehttp://javarevisited.blogspot.com/2012/01/javasqlsqlexception-invalid-column.html
Total Hits: 6075
Total Votes: 17 votes
Average Rating: 3.06 out of 5
Category: JAVA/JDBC
Description:
Main reason of SQLException:Invalid Column Index is either you are trying to read an invalid column index from result set returned by Query or you are setting parameter on parametric prepared Statement on invalid index using getString or setString method. usually this comes when programmer uses index "0" to refer first element which is not true because index starts from "1" in preparedStatement and ResultSet.Rating Detail
| Stars | Percentage | Total Vote |
|---|---|---|
![]() |
![]() ![]() 11.76% |
2 |
![]() ![]() |
![]() ![]() 11.76% |
2 |
![]() ![]() ![]() |
![]() ![]() 17.65% |
3 |
![]() ![]() ![]() ![]() |
![]() ![]() 17.65% |
3 |
![]() ![]() ![]() ![]() ![]() |
![]() ![]() 29.41% |
5 |




11.76%

11.76%

17.65%

17.65%

29.41%