corresponding SQLSTATE values general error

Source: Internet
Author: User
Tags error code


B.3 Server Error Codes and Messages

MySQL programs has access to several types of error information when the server returns an error. For example, the MySQLclient program displays errors using the following format:

SELECT * FROM no_such_table;ERROR 1146 (42S02): Table ' test.no_such_table ' doesn ' t exist

The message displayed contains three types of information:

    • A Numeric error code ( 1146 ). This number is mysql-specific and are not portable to other database systems.

    • A five-character SQLSTATE Value ( ‘42S02‘ ). The values is taken from ANSI SQL and ODBC and is more standardized. Not all MySQL error numbers has corresponding SQLSTATE values. In these cases, ‘HY000‘ (general error) is used.

    • A message string that provides a textual description of the error.

corresponding SQLSTATE values general error

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: 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.