数据库中的表bs_province如图所示:
SQL语句:
select PROVINCE_ID, PROVINCE_CODE, PROVINCE_NAME, SHORT_NAME, LNG, LAT from bs_province
报错:Cause: org.postgresql.util.PSQLException: ERROR: column "province_id" does not exist
直接在数据库中进行查询,也提示:
解决办法:
在每个字段上加上双引号:
select "PROVINCE_ID", "PROVINCE_CODE", "PROVINCE_NAME", "SHORT_NAME", "LNG", "LAT" from bs_province
执行结果如图: