【项目实战】PSQLException: ERROR: column “xxx“ does not exist

矫情吗;* 2024-02-17 12:01 161阅读 0赞

一、异常内容

  1. ### Cause: org.postgresql.util.PSQLException: ERROR: column "parent_id" does not exist
  2. 位置:72
  3. ; bad SQL grammar []; nested exception is org.postgresql.util.PSQLException: ERROR: column "parent_id" does not exist
  4. 位置:72
  5. at org.springframework.jdbc.support.SQLStateSQLExceptionTranslator.doTranslate(SQLStateSQLExceptionTranslator.java:101)
  6. at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:70)

二、异常说明

典型的某表中某字段column ,column 名叫”parent_id” 的不存在。

三、异常解决

定位某表。增加对应的字段column 即可,新增时注意,对应下实体的数据类型。

发表评论

表情:
评论列表 (有 0 条评论,161人围观)

还没有评论,来说两句吧...

相关阅读