Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in SQL by (6.1k points)

I am getting the following error while testing some code:

SQLException: Invalid column index

What exactly does this mean?

Is there any online documentation describing what are all the oracle error codes and statements?

1 Answer

0 votes
by (12.7k points)
edited by

If it is an SQLException which is thrown by Java, then it is most possibly because you're attempting to set or get the value from the ResultSet, although, the index you are utilising is not within the range.

For example, you might be attempting to get the column at index 3 from the result set, although you are simply having two columns being returned from the SQL query.

Join the SQL Training course now if you want to gain more knowledge in SQL.

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...