2018.6.10 Common error summaries for Oracle databases

Source: Internet
Author: User

1, classnofoundexception can not find the registration driver

Possible cause:1> driver name is incorrect
2> Database driver package not imported

2, the SQL statement can use any valid function, function operation of the column, you must specify an alias, otherwise it will appear

Java.sql.SQLException: Invalid column name

3. Java.sql.SQLException: Invalid column index:

SQL string inside? The number of numbers is inconsistent with the number of variables provided

4. Java.sql.SQLException: The result set is exhausted

When you manipulate the result set, the pointer to the result set points to the result set, for example: Rs.beforefirst ();

5, appear SqlException, through SYSTEM.OUT.PRINTLN (SQL); Print the contents of the SQL statement to view the SQL statement syntax error 6, JDBC subscript starting from 1, if starting from 0, Throws an exception Java.sql.SQLException: Invalid column index: getValidColumnIndex7, java.sql.SQLException Io exception: The Network Adapter could not Establish the connection is because the IP address of the URL is not written to the IP address of its home host 8, Java.sql.SQLException: invalid operation on a read-only result set: updatestring Because Sun provides this interface statement in the resutset.concur_upddatable, but Oracle provides the driver package is not supported, MySQL support 9, java.sql.SQLException: Invalid characters A semicolon is added to the SQL statement; 10java.sql.sqlexception: is the index missing in or out? Number is inconsistent with the given value 11, Exception in thread "main" Java.lang.ExceptionInInitializerError12, Java.sql.SQLException: Invalid column name Specify column name 13, ORC: line number when no function operation is given to the SQL statement .... are SQL statements with errors, console errors are consistent with errors in the database

2018.6.10 Common error summaries for Oracle databases

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.