Class 23 — Integrity Constraint Violation/类 23 - 违反完整性约束 |
|
|
✅ |
|
|
23000 |
integrity_constraint_violation |
违反完整性约束 |
✅ |
|
|
23001 |
restrict_violation |
违反限制 |
✅ |
|
|
23502 |
not_null_violation |
违反非空约束 |
✅ |
|
|
23503 |
foreign_key_violation |
违反外键约束 |
✅ |
|
|
23505 |
unique_violation |
违反唯一约束 |
✅ |
|
|
23514 |
check_violation |
违反CHECK约束 |
✅ |
|
|
23P01 |
exclusion_violation |
违反排他约束 |
✅ |
|
|
Class 24 — Invalid Cursor State/类 24 - 非法游标状态 |
|
|
✅ |
|
|
24000 |
invalid_cursor_state |
非法游标状态 |
✅ |
|
|
Class 25 — Invalid Transaction State/类 25 - 非法事务状态 |
|
|
✅ |
|
|
25000 |
invalid_transaction_state |
非法事务状态 |
✅ |
|
|
25001 |
active_sql_transaction |
活跃的SQL状态 |
✅ |
|
|
25002 |
branch_transaction_already_active |
分支事务已激活 |
✅ |
|
|
25008 |
held_cursor_requires_same_isolation_level |
持有的游标要求同样的隔离级别 |
✅ |
|
|
25003 |
inappropriate_access_mode_for_branch_transaction |
分支事务访问方式不当 |
✅ |
|
|
25004 |
inappropriate_isolation_level_for_branch_transaction |
分支事务隔离级别不当 |
✅ |
|
|
25005 |
no_active_sql_transaction_for_branch_transaction |
分支事务没有活跃的SQL事务 |
✅ |
|
|
25006 |
read_only_sql_transaction |
只读的SQL事务 |
✅ |
|
|
25007 |
schema_and_data_statement_mixing_not_supported |
不支持模式和数据语句混合使用 |
✅ |
|
|
25009 |
no_active_sql_transaction |
恢复期间无法启用事务 |
|
|
✅ |
25010 |
in_failed_sql_transaction |
事务ID不存在 |
|
|
✅ |
25P01 |
no_active_sql_transaction |
没有活跃的SQL事务 |
✅ |
|
|
25P02 |
in_failed_sql_transaction |
在失败的SQL事务中 |
✅ |
|
|
25P03 |
idle_in_transaction_session_timeout |
|
✅ |
|
|
Class 26 — Invalid SQL Statement Name/类 26 - 非法SQL语句名 |
|
|
✅ |
|
|
26000 |
invalid_sql_statement_name |
非法SQL语句名 |
✅ |
|
|
Class 27 — Triggered Data Change Violation/类 27 - 触发的数据改变违规 |
|
|
✅ |
|
|
27000 |
triggered_data_change_violation |
触发的数据改变违规 |
✅ |
|
|
27001 |
triggered_invalid_tupl |
触发的元素非法 |
|
|
✅ |
Class 28 — Invalid Authorization Specification/类 28 - 非法授权声明 |
invalid_authorization_specification |
|
✅ |
|
|
28000 |
invalid_authorization_specification |
非法授权声明 |
✅ |
|
|
28P01 |
invalid_password |
非法密码 |
✅ |
|
|
28P02 |
initial_password_not_modified |
未修改初始密码 |
✅ |
|
|
类29 - 无效或意外的状态 |
|
|
✅ |
|
|
29P06 |
invalid_cache_plan |
缓存在CACHE中的PLAN无效 |
|
|
✅ |
Class 2B — Dependent Privilege Descriptors Still Exist/类 2B - 依然存在依赖的优先级描述符 |
|
|
✅ |
|
|
2B000 |
dependent_privilege_descriptors_still_exist |
依然存在依赖的优先级描述符 |
✅ |
|
|
2BP01 |
dependent_objects_still_exist |
依赖性对象仍然存在 |
✅ |
|
|
Class 2D — Invalid Transaction Termination/类 2D - 非法的事务终止 |
|
|
✅ |
|
|
2D000 |
invalid_transaction_termination |
非法的事务终止 |
✅ |
|
|
Class 2F — SQL Routine Exception/类 2F - SQL过程异常 |
|
|
✅ |
|
|
2F000 |
sql_routine_exception |
SQL过程异常 |
✅ |
|
|
2F005 |
function_executed_no_return_statement |
执行的函数没有返回语句 |
✅ |
|
|
2F002 |
modifying_sql_data_not_permitted |
不允许修改SQL数据 |
✅ |
|
|
2F003 |
prohibited_sql_statement_attempted |
企图使用禁止的SQL语句 |
✅ |
|
|
2F004 |
reading_sql_data_not_permitted |
不允许读取SQL数据 |
✅ |
|
|
Class 34 — Invalid Cursor Name/类 34 - 非法游标名 |
|
|
✅ |
|
|
34000 |
invalid_cursor_name |
非法游标名 |
✅ |
|
|
Class 38 — External Routine Exception/类 38 - 外部过程异常 |
|
|
✅ |
|
|
38000 |
external_routine_exception |
外部过程异常 |
✅ |
|
|
38001 |
containing_sql_not_permitted |
不允许包含SQL |
✅ |
|
|
38002 |
modifying_sql_data_not_permitted |
不允许修改SQL数据 |
✅ |
|
|
38003 |
prohibited_sql_statement_attempted |
企图使用禁止的SQL语句 |
✅ |
|
|
38004 |
reading_sql_data_not_permitted |
不允许读取SQL数据 |
✅ |
|
|
Class 39 — External Routine Invocation Exception/类 39 - 外部过程调用异常 |
|
|
✅ |
|
|
39000 |
external_routine_invocation_exception |
外部过程调用异常 |
✅ |
|
|
39001 |
invalid_sqlstate_returned |
返回了非法的SQLSTATE |
✅ |
|
|
39004 |
null_value_not_allowed |
不允许空值 |
✅ |
|
|
39P01 |
trigger_protocol_violated |
违反触发协议 |
✅ |
|
|
39P02 |
srf_protocol_violated |
违反SRF协议 |
✅ |
|
|
39P03 |
event_trigger_protocol_violated |
|
|
✅ |
|
Class 3B — Savepoint Exception/类 3B - 保存点异常 |
|
|
✅ |
|
|
3B000 |
savepoint_exception |
保存点异常 |
✅ |
|
|
3B001 |
invalid_savepoint_specification |
无效的保存点声明 |
✅ |
|
|
Class 3D — Invalid Catalog Name/类 3D - 非法数据库名 |
|
|
✅ |
|
|
3D000 |
invalid_catalog_name |
非法数据库名 |
✅ |
|
|
Class 3F — Invalid Schema Name/类 3F - 非法模式名 |
|
|
✅ |
|
|
3F000 |
invalid_schema_name |
非法模式名 |
✅ |
|
|
3F001 |
undefined_schema |
未定义模式 |
|
|
✅ |
Class 40 — Transaction Rollback/类 40 - 事务回滚 |
|
|
✅ |
|
|
40000 |
transaction_rollback |
事务回滚 |
✅ |
|
|
40002 |
transaction_integrity_constraint_violation |
违反事务完整性约束 |
✅ |
|
|
40001 |
serialization_failure |
串行化失败 |
✅ |
|
|
40003 |
statement_completion_unknown |
未知语句是否结束 |
✅ |
|
|
40P01 |
deadlock_detected |
侦测到死锁 |
✅ |
|
|
Class 42 — Syntax Error or Access Rule Violation/类 42 - 语法错误或者违反访问规则 |
|
|
✅ |
|
|
42000 |
syntax_error_or_access_rule_violation |
语法错误或者违反访问规则 |
✅ |
|
|
42601 |
syntax_error |
语法错误 |
✅ |
|
|
42501 |
insufficient_privilege |
权限不够 |
✅ |
|
|
42846 |
cannot_coerce |
无法进行类型转换 |
✅ |
|
|
42803 |
grouping_error |
分组错误 |
✅ |
|
|
42P20 |
windowing_error |
窗口错误 |
✅ |
|
|
42P19 |
invalid_recursion |
无效递归 |
✅ |
|
|
42830 |
invalid_foreign_key |
非法的外键 |
✅ |
|
|
42602 |
invalid_name |
非法名称 |
✅ |
|
|
42622 |
name_too_long |
名称太长 |
✅ |
|
|
42939 |
reserved_name |
保留名称 |
✅ |
|
|
42804 |
datatype_mismatch |
数据类型不匹配 |
✅ |
|
|
42P18 |
indeterminate_datatype |
不确定的数据类型 |
✅ |
|
|
42P21 |
collation_mismatch |
排序规则不匹配 |
✅ |
|
|
42P22 |
indeterminate_collation |
不确定的排序规则 |
✅ |
|
|