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.

Related questions

0 votes
2 answers
0 votes
1 answer
asked Jan 6, 2021 in SQL by Appu (6.1k points)
0 votes
3 answers
asked Dec 29, 2020 in SQL by Appu (6.1k points)

1.2k questions

2.7k answers

501 comments

693 users

Browse Categories

...