PSQLException: ERROR: syntax error at or near “user“

PSQLException: ERROR: syntax error at or near “user”

报错信息:

INSERT INTO biz_plan_internal_check_member (id, biz_plan_internal_check_id, user_category, user_ids, user) VALUES (343376491536449536, 343376491196710912, '实施', '1,2,3', '张三礼物王五');
2020-11-16 14:33:33 INFO  [biz-cdc-qc,,,] http-nio-8204-exec-9 p6spy 
2020-11-16 14:33:33 ERROR [biz-cdc-qc,,,] http-nio-8204-exec-9 com.cdrundle.core.handler.GlobalExceptionHandler 
### Error updating database.  Cause: org.postgresql.util.PSQLException: ERROR: syntax error at or near "user"
  位置:102
### The error may exist in com/cdrundle/cdc/qc/dao/BizPlanInternalCheckMemberDao.java (best guess)
### The error may involve com.cdrundle.cdc.qc.dao.BizPlanInternalCheckMemberDao.insert-Inline
### The error occurred while setting parameters
### SQL: INSERT INTO biz_plan_internal_check_member (id, biz_plan_internal_check_id, user_category, user_ids, user) VALUES (?, ?, ?, ?, ?)
### Cause: org.postgresql.util.PSQLException: ERROR: syntax error at or near "user"

原因:user是关键字,在postgresql中不能使用关键字作为字段名称,修改字段名即可。

  • 4
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值