MySql错误代码表

做MySql数据库开发经常需要各种容错处理,整理一份MySql错误代码表十分有必要啊
error codeSQLSTATE codeError message
1011HY000Error on delete of '%s'  (errno: %d)   
1021HY000Disk full (%s); waiting for  someone to free some space...   
102223000Can't write; duplicate key in table ' %s'   
1027HY000'%s'  is locked against change   
1036HY000Table '%s'  is read only   
104823000Column '%s'  cannot be null   
106223000Duplicate entry '%s'  for  key %d   
1099HY000Table '%s'  was locked with a READ lock and can't be updated   
1100HY000Table '%s'  was not locked with LOCK TABLES   
110442000The SELECT would examine more than MAX_JOIN_SIZE rows; check your WHERE and use SET SQL_BIG_SELECTS=1  or SET SQL_MAX_JOIN_SIZE=# if  the SELECT is okay
110642000Incorrect parameters to procedure '%s'   
1114HY000The table '%s'  is full   
1150HY000Delayed insert thread couldn't get requested lock for  table %s   
1165HY000INSERT DELAYED can't be used with table ' %s' because it is locked with LOCK TABLES   
124221000Subquery returns more than 1  row   
126322004Column set to default  value; NULL supplied to NOT NULL column '%s'  at row %ld   
126422003Out of range value adjusted for  column '%s'  at row %ld   
12651000Data truncated for  column '%s'  at row %ld   
13120A000SELECT in a stored program must have INTO   
131770100Query execution was interrupted   
131942000Undefined CONDITION: %s   
132524000Cursor is already open   
132624000Cursor is not open   
1328HY000Incorrect number of FETCH variables   
13292000No data to FETCH   
133642000USE is not allowed in a stored program   
133742000Variable or condition declaration after cursor or handler declaration   
133842000Cursor declaration after handler declaration   
133920000Case not found for  CASE statement   
1348HY000Column '%s'  is not updatable   
1357HY000Can't drop a %s from within another stored routine   
1358HY000GOTO is not allowed in a stored program handler   
1362HY000Updating of %s row is not allowed in %s trigger   
1363HY000There is no %s row in %s trigger  
  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值