码迷,mamicode.com
首页 > 数据库 > 详细

corresponding SQLSTATE values general error

时间:2016-12-23 16:38:45      阅读:187      评论:0      收藏:0      [点我收藏+]

标签:data   play   esc   href   ever   ansi   win   ext   character   

 

http://dev.mysql.com/doc/refman/5.7/en/error-messages-server.html

B.3 Server Error Codes and Messages

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

shell> 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 is not portable to other database systems.

  • A five-character SQLSTATE value (‘42S02‘). The values are taken from ANSI SQL and ODBC and are more standardized. Not all MySQL error numbers have 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

标签:data   play   esc   href   ever   ansi   win   ext   character   

原文地址:http://www.cnblogs.com/yuanjiangw/p/6215111.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!