【postgresql】ERROR: integer out of range

查询文章都类似,只是类型没有对应上,根据实际情况处理。

前情

  • 使用postgresql数据库
  • 数据库ID类型int4
  • 实体类代码private Long id;

异常

### Cause: org.postgresql.util.PSQLException: ERROR: integer out of range
; ERROR: integer out of range; nested exception is org.postgresql.util.PSQLException: ERROR: integer out of range

结果

数据库类型int4与代码里面的Long类型不一致,需要数据库类型int8才能够和实体类Long对应上

相关推荐
momo小菜pa7 分钟前
【MySQL 01】数据库基础
数据库·mysql
码爸25 分钟前
hbase merge工具
大数据·数据库·hbase
hong_zc27 分钟前
JDBC 编程
java·数据库·mysql
Leoysq27 分钟前
Oracle 数据库常用命令与操作指南
数据库·笔记·oracle
数据与人28 分钟前
Can‘t connect to local MySQL server through socket
数据库
天蓝蓝2352832 分钟前
MySQL数据库的备份与恢复
数据库·mysql·oracle
踏浪逐行33 分钟前
数据库(mysql)常用命令
数据库·mysql
Leoysq1 小时前
Navicate 链接Oracle 提示 Oracle Library is not loaded ,账号密码都正确地址端口也对
数据库·oracle
imc.111 小时前
初识linux(2)
java·linux·数据库
武子康1 小时前
大数据-143 - ClickHouse 集群 SQL 超详细实践记录!
java·大数据·数据库·分布式·sql·clickhouse·flink