当前位置: 代码迷 >> 综合 >> 数据库日常报错收集(不断更新)
  详细解决方案

数据库日常报错收集(不断更新)

热度:68   发布时间:2024-02-11 05:02:41.0
  • java.sql.SQLSyntaxErrorException: ORA-01791: not a SELECTed expression

查询中使用了DISTINCT或者GROUP BY子句时,order by中的排序字段就必须出现在select列表中,否则就会报上述错误。

  • java.sql.SQLIntegrityConstraintViolationException: ORA-01400: cannot insert NULL into `````

ORA-01400: 无法将 NULL 插入

  • java.sql.SQLIntegrityConstraintViolationException: ORA-00001: unique constraint

数据唯一性约束